09:53:29.543 [Test worker] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
09:53:29.615 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
09:53:29.618 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
09:53:29.619 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
09:53:29.620 [Test worker] DEBUG i.n.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: true
09:53:29.634 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Java version: 8
09:53:29.634 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false
09:53:29.634 [Test worker] DEBUG i.n.util.internal.PlatformDependent - sun.misc.Unsafe: available
09:53:29.635 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noJavassist: false
09:53:29.637 [Test worker] DEBUG i.n.util.internal.PlatformDependent - Javassist: unavailable
09:53:29.637 [Test worker] DEBUG i.n.util.internal.PlatformDependent - You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes. Please check the configuration for better performance.
09:53:29.638 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
09:53:29.638 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
09:53:29.638 [Test worker] DEBUG i.n.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
09:53:31.860 [Test worker] DEBUG i.n.c.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
09:53:32.310 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
09:53:32.310 [Test worker] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
09:53:32.691 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 16
09:53:32.691 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 16
09:53:32.692 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
09:53:32.703 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 11
09:53:32.703 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 16777216
09:53:32.704 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.tinyCacheSize: 512
09:53:32.704 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
09:53:32.704 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
09:53:32.704 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
09:53:32.704 [Test worker] DEBUG i.n.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
09:53:33.012 [MockServer thread for port: 43112] DEBUG i.n.util.internal.ThreadLocalRandom - -Dio.netty.initialSeedUniquifier: 0xfb82a56b4a9ec000 (took 34 ms)
09:53:33.164 [MockServer thread for port: 43112] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: unpooled
09:53:33.166 [MockServer thread for port: 43112] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 65536
09:53:33.166 [MockServer thread for port: 43112] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
09:53:33.194 [MockServer thread for port: 43112] DEBUG io.netty.util.NetUtil - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
09:53:33.200 [MockServer thread for port: 43112] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 128
09:53:33.263 [MockServer thread for port: 43112] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43112
09:53:34.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:34.779 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found on classpath using path [mockserver.properties]
09:53:34.780 [Test worker] DEBUG o.m.c.ConfigurationProperties - Property file not found using path [mockserver.properties]
09:53:35.000 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.bytebuf.checkAccessible: true
09:53:35.009 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
09:53:35.033 [nioEventLoopGroup-4-1] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.maxRecords: 4
09:53:35.183 [nioEventLoopGroup-4-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacity.default: 262144
09:53:36.489 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:36.903 [nioEventLoopGroup-3-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:36.914 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:36.919 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 => /127.0.0.1:43112] FLUSH
09:53:36.927 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:36.931 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 => /127.0.0.1:43112] FLUSH
09:53:36.932 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 :> /127.0.0.1:43112] INACTIVE
09:53:36.934 [nioEventLoopGroup-3-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e452604, /127.0.0.1:46748 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.184 [nioEventLoopGroup-4-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-4-1
09:53:37.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.264 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.305 [nioEventLoopGroup-3-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:37.314 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.316 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 => /127.0.0.1:43112] FLUSH
09:53:37.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.331 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 => /127.0.0.1:43112] FLUSH
09:53:37.332 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 :> /127.0.0.1:43112] INACTIVE
09:53:37.333 [nioEventLoopGroup-3-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xade77568, /127.0.0.1:46752 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.446 [nioEventLoopGroup-6-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-6-1
09:53:37.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.510 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.518 [nioEventLoopGroup-3-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:37.520 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.520 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 => /127.0.0.1:43112] FLUSH
09:53:37.522 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.522 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 => /127.0.0.1:43112] FLUSH
09:53:37.523 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 :> /127.0.0.1:43112] INACTIVE
09:53:37.523 [nioEventLoopGroup-3-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3821b8d1, /127.0.0.1:46760 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.537 [nioEventLoopGroup-7-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-7-1
09:53:37.590 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.625 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.636 [nioEventLoopGroup-3-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:37.637 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.638 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 => /127.0.0.1:43112] FLUSH
09:53:37.640 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 => /127.0.0.1:43112] FLUSH
09:53:37.640 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 :> /127.0.0.1:43112] INACTIVE
09:53:37.640 [nioEventLoopGroup-3-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3da84cf1, /127.0.0.1:46764 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.642 [nioEventLoopGroup-8-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-8-1
09:53:37.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.669 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.678 [nioEventLoopGroup-3-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:37.679 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.681 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 => /127.0.0.1:43112] FLUSH
09:53:37.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.685 [nioEventLoopGroup-9-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-9-1
09:53:37.685 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 => /127.0.0.1:43112] FLUSH
09:53:37.686 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 :> /127.0.0.1:43112] INACTIVE
09:53:37.687 [nioEventLoopGroup-3-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x948de36f, /127.0.0.1:46768 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.753 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.763 [nioEventLoopGroup-3-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:37.767 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.768 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 => /127.0.0.1:43112] FLUSH
09:53:37.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.771 [nioEventLoopGroup-10-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-10-1
09:53:37.776 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 => /127.0.0.1:43112] FLUSH
09:53:37.776 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 :> /127.0.0.1:43112] INACTIVE
09:53:37.777 [nioEventLoopGroup-3-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8370705, /127.0.0.1:46772 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.813 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.819 [nioEventLoopGroup-3-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:37.822 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.823 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 => /127.0.0.1:43112] FLUSH
09:53:37.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.825 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 => /127.0.0.1:43112] FLUSH
09:53:37.825 [nioEventLoopGroup-11-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-11-1
09:53:37.860 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 :> /127.0.0.1:43112] INACTIVE
09:53:37.861 [nioEventLoopGroup-3-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf2b0a2c5, /127.0.0.1:46774 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.874 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:37.913 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:37.924 [nioEventLoopGroup-3-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:37.928 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:37.929 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 => /127.0.0.1:43112] FLUSH
09:53:37.931 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:37.932 [nioEventLoopGroup-12-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-12-1
09:53:37.932 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 => /127.0.0.1:43112] FLUSH
09:53:37.933 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 :> /127.0.0.1:43112] INACTIVE
09:53:37.933 [nioEventLoopGroup-3-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ca1f237, /127.0.0.1:46778 :> /127.0.0.1:43112] UNREGISTERED
09:53:37.987 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:38.016 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:38.021 [nioEventLoopGroup-3-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:38.023 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:38.024 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 => /127.0.0.1:43112] FLUSH
09:53:38.026 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:38.027 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 => /127.0.0.1:43112] FLUSH
09:53:38.027 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 :> /127.0.0.1:43112] INACTIVE
09:53:38.027 [nioEventLoopGroup-3-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfef5696e, /127.0.0.1:46784 :> /127.0.0.1:43112] UNREGISTERED
09:53:38.029 [nioEventLoopGroup-13-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-13-1
09:53:38.030 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:38.068 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:38.073 [nioEventLoopGroup-3-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:38.074 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:38.075 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 => /127.0.0.1:43112] FLUSH
09:53:38.077 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:38.077 [nioEventLoopGroup-14-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-14-1
09:53:38.078 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 => /127.0.0.1:43112] FLUSH
09:53:38.078 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 :> /127.0.0.1:43112] INACTIVE
09:53:38.078 [nioEventLoopGroup-3-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b1c8f4d, /127.0.0.1:46786 :> /127.0.0.1:43112] UNREGISTERED
09:53:38.100 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:38.144 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:38.146 [nioEventLoopGroup-3-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:38.147 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:38.147 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 => /127.0.0.1:43112] FLUSH
09:53:38.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:38.149 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 => /127.0.0.1:43112] FLUSH
09:53:38.149 [nioEventLoopGroup-15-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-15-1
09:53:38.150 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 :> /127.0.0.1:43112] INACTIVE
09:53:38.150 [nioEventLoopGroup-3-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe374188, /127.0.0.1:46792 :> /127.0.0.1:43112] UNREGISTERED
09:53:38.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:38.181 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:38.184 [nioEventLoopGroup-3-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:38.185 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:38.186 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 => /127.0.0.1:43112] FLUSH
09:53:38.207 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:38.208 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 => /127.0.0.1:43112] FLUSH
09:53:38.208 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 :> /127.0.0.1:43112] INACTIVE
09:53:38.209 [nioEventLoopGroup-3-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8882b933, /127.0.0.1:46794 :> /127.0.0.1:43112] UNREGISTERED
09:53:38.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:38.237 [nioEventLoopGroup-16-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-16-1
09:53:38.271 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 => /127.0.0.1:43112] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:38.280 [nioEventLoopGroup-3-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:38.283 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:38.286 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 => /127.0.0.1:43112] FLUSH
09:53:38.288 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:38.290 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 => /127.0.0.1:43112] FLUSH
09:53:38.292 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 :> /127.0.0.1:43112] INACTIVE
09:53:38.293 [nioEventLoopGroup-3-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x799bb7cc, /127.0.0.1:46800 :> /127.0.0.1:43112] UNREGISTERED
09:53:38.331 [nioEventLoopGroup-17-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-17-1
09:53:40.816 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fd1d831, /127.0.0.1:46806 => /127.0.0.1:43112] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:43112
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:40.821 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.822 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.824 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:40.825 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.827 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.828 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.829 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:40.831 [nioEventLoopGroup-3-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:40.833 [nioEventLoopGroup-3-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:40.834 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fd1d831, /127.0.0.1:46806 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:40.834 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fd1d831, /127.0.0.1:46806 => /127.0.0.1:43112] FLUSH
09:53:41.215 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98c8e3df, /127.0.0.1:46816 => /127.0.0.1:43112] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:43112
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:41.216 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.217 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.218 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:41.219 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.220 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.222 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.223 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.224 [nioEventLoopGroup-3-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:41.225 [nioEventLoopGroup-3-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43112" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:41.226 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98c8e3df, /127.0.0.1:46816 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:41.226 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98c8e3df, /127.0.0.1:46816 => /127.0.0.1:43112] FLUSH
09:53:41.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:41.255 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 => /127.0.0.1:43112] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43112
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:41.256 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 => /127.0.0.1:43112] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.256 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 => /127.0.0.1:43112] FLUSH
09:53:41.257 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 => /127.0.0.1:43112] CLOSE()
09:53:41.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.258 [nioEventLoopGroup-18-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-18-1
09:53:41.264 [nioEventLoopGroup-3-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-1
09:53:41.264 [nioEventLoopGroup-3-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-4
09:53:41.264 [nioEventLoopGroup-3-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-2
09:53:41.265 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fd1d831, /127.0.0.1:46806 :> /127.0.0.1:43112] INACTIVE
09:53:41.265 [nioEventLoopGroup-3-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fd1d831, /127.0.0.1:46806 :> /127.0.0.1:43112] UNREGISTERED
09:53:41.265 [nioEventLoopGroup-3-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-10
09:53:41.265 [nioEventLoopGroup-3-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-11
09:53:41.265 [nioEventLoopGroup-3-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-9
09:53:41.266 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98c8e3df, /127.0.0.1:46816 :> /127.0.0.1:43112] INACTIVE
09:53:41.266 [nioEventLoopGroup-3-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-3
09:53:41.266 [nioEventLoopGroup-3-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-8
09:53:41.266 [nioEventLoopGroup-3-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98c8e3df, /127.0.0.1:46816 :> /127.0.0.1:43112] UNREGISTERED
09:53:41.266 [nioEventLoopGroup-3-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-5
09:53:41.266 [nioEventLoopGroup-3-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-7
09:53:41.266 [nioEventLoopGroup-3-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-6
09:53:41.266 [nioEventLoopGroup-3-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-12
09:53:41.266 [nioEventLoopGroup-3-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-13
09:53:41.620 [MockServer thread for port: 39075] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39075
09:53:41.621 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.626 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.628 [nioEventLoopGroup-20-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:41.629 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.629 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 => /127.0.0.1:39075] FLUSH
09:53:41.630 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.631 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 => /127.0.0.1:39075] FLUSH
09:53:41.631 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 :> /127.0.0.1:39075] INACTIVE
09:53:41.632 [nioEventLoopGroup-21-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-21-1
09:53:41.632 [nioEventLoopGroup-20-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0528b422, /127.0.0.1:38972 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.644 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.655 [nioEventLoopGroup-20-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:41.656 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.656 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 => /127.0.0.1:39075] FLUSH
09:53:41.657 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 => /127.0.0.1:39075] FLUSH
09:53:41.657 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.658 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 :> /127.0.0.1:39075] INACTIVE
09:53:41.658 [nioEventLoopGroup-20-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb1cd7ef9, /127.0.0.1:38978 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.658 [nioEventLoopGroup-22-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-22-1
09:53:41.663 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.669 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.675 [nioEventLoopGroup-20-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:41.675 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.676 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 => /127.0.0.1:39075] FLUSH
09:53:41.677 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 => /127.0.0.1:39075] FLUSH
09:53:41.677 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.677 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 :> /127.0.0.1:39075] INACTIVE
09:53:41.677 [nioEventLoopGroup-20-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfff92d16, /127.0.0.1:38982 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.677 [nioEventLoopGroup-23-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-23-1
09:53:41.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.688 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.690 [nioEventLoopGroup-20-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:41.690 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.690 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 => /127.0.0.1:39075] FLUSH
09:53:41.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.692 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 => /127.0.0.1:39075] FLUSH
09:53:41.693 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 :> /127.0.0.1:39075] INACTIVE
09:53:41.693 [nioEventLoopGroup-20-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe0858cf7, /127.0.0.1:38986 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.694 [nioEventLoopGroup-24-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-24-1
09:53:41.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.703 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.706 [nioEventLoopGroup-20-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:41.706 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.706 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 => /127.0.0.1:39075] FLUSH
09:53:41.707 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 => /127.0.0.1:39075] FLUSH
09:53:41.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.707 [nioEventLoopGroup-25-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-25-1
09:53:41.709 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 :> /127.0.0.1:39075] INACTIVE
09:53:41.709 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.709 [nioEventLoopGroup-20-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf87268ba, /127.0.0.1:38988 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.713 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.715 [nioEventLoopGroup-20-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:41.715 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.715 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 => /127.0.0.1:39075] FLUSH
09:53:41.716 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 => /127.0.0.1:39075] FLUSH
09:53:41.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.716 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 :> /127.0.0.1:39075] INACTIVE
09:53:41.716 [nioEventLoopGroup-26-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-26-1
09:53:41.717 [nioEventLoopGroup-20-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae438e40, /127.0.0.1:38990 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.722 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.725 [nioEventLoopGroup-20-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:41.727 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.728 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 => /127.0.0.1:39075] FLUSH
09:53:41.729 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 => /127.0.0.1:39075] FLUSH
09:53:41.729 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.729 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 :> /127.0.0.1:39075] INACTIVE
09:53:41.729 [nioEventLoopGroup-20-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x400f5b2d, /127.0.0.1:38992 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.729 [nioEventLoopGroup-27-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-27-1
09:53:41.736 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.740 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.742 [nioEventLoopGroup-20-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:41.742 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.743 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 => /127.0.0.1:39075] FLUSH
09:53:41.744 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 => /127.0.0.1:39075] FLUSH
09:53:41.744 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 :> /127.0.0.1:39075] INACTIVE
09:53:41.744 [nioEventLoopGroup-20-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8fa53da, /127.0.0.1:38994 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.743 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.745 [nioEventLoopGroup-28-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-28-1
09:53:41.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.750 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.752 [nioEventLoopGroup-20-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:41.753 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.753 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 => /127.0.0.1:39075] FLUSH
09:53:41.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.757 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 => /127.0.0.1:39075] FLUSH
09:53:41.758 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 :> /127.0.0.1:39075] INACTIVE
09:53:41.758 [nioEventLoopGroup-20-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b9777f, /127.0.0.1:38996 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.758 [nioEventLoopGroup-29-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-29-1
09:53:41.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.764 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 :> /127.0.0.1:43112] FLUSH
09:53:41.764 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 :> /127.0.0.1:43112] INACTIVE
09:53:41.764 [nioEventLoopGroup-3-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e259460, /127.0.0.1:46818 :> /127.0.0.1:43112] UNREGISTERED
09:53:41.765 [nioEventLoopGroup-3-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-16
09:53:41.766 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.767 [nioEventLoopGroup-20-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:41.767 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.768 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 => /127.0.0.1:39075] FLUSH
09:53:41.768 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 => /127.0.0.1:39075] FLUSH
09:53:41.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.768 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 :> /127.0.0.1:39075] INACTIVE
09:53:41.769 [nioEventLoopGroup-20-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a1c4111, /127.0.0.1:38998 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.769 [nioEventLoopGroup-30-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-30-1
09:53:41.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.774 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.775 [nioEventLoopGroup-20-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:41.776 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.776 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 => /127.0.0.1:39075] FLUSH
09:53:41.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.777 [nioEventLoopGroup-31-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-31-1
09:53:41.778 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 => /127.0.0.1:39075] FLUSH
09:53:41.778 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 :> /127.0.0.1:39075] INACTIVE
09:53:41.778 [nioEventLoopGroup-20-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x565be3ab, /127.0.0.1:39000 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.784 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.786 [nioEventLoopGroup-20-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:41.787 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.787 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 => /127.0.0.1:39075] FLUSH
09:53:41.788 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.789 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 => /127.0.0.1:39075] FLUSH
09:53:41.789 [nioEventLoopGroup-32-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-32-1
09:53:41.789 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 :> /127.0.0.1:39075] INACTIVE
09:53:41.789 [nioEventLoopGroup-20-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8a832287, /127.0.0.1:39002 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:41.795 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 => /127.0.0.1:39075] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:41.797 [nioEventLoopGroup-20-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:41.798 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.798 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 => /127.0.0.1:39075] FLUSH
09:53:41.798 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 => /127.0.0.1:39075] FLUSH
09:53:41.798 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.798 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 :> /127.0.0.1:39075] INACTIVE
09:53:41.799 [nioEventLoopGroup-20-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14e177c5, /127.0.0.1:39004 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.799 [nioEventLoopGroup-33-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-33-1
09:53:41.807 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7115e290, /127.0.0.1:39006 => /127.0.0.1:39075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:39075
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:41.808 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.809 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.810 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:41.810 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.811 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.811 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.812 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.812 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.813 [nioEventLoopGroup-20-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:41.814 [nioEventLoopGroup-20-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:41.814 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7115e290, /127.0.0.1:39006 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:41.814 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7115e290, /127.0.0.1:39006 => /127.0.0.1:39075] FLUSH
09:53:41.822 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb6fc6f, /127.0.0.1:39008 => /127.0.0.1:39075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:39075
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:41.823 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.824 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.825 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:41.826 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.827 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.828 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.829 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.830 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:41.831 [nioEventLoopGroup-20-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:41.832 [nioEventLoopGroup-20-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:39075" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:41.832 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb6fc6f, /127.0.0.1:39008 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:41.833 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb6fc6f, /127.0.0.1:39008 => /127.0.0.1:39075] FLUSH
09:53:41.834 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:41.838 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 => /127.0.0.1:39075] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39075
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:41.839 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 => /127.0.0.1:39075] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:41.839 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 => /127.0.0.1:39075] FLUSH
09:53:41.839 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 => /127.0.0.1:39075] CLOSE()
09:53:41.839 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:41.840 [nioEventLoopGroup-34-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-34-1
09:53:41.841 [nioEventLoopGroup-20-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-6
09:53:41.841 [nioEventLoopGroup-20-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-8
09:53:41.841 [nioEventLoopGroup-20-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-11
09:53:41.841 [nioEventLoopGroup-20-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-3
09:53:41.841 [nioEventLoopGroup-20-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-10
09:53:41.841 [nioEventLoopGroup-20-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-4
09:53:41.842 [nioEventLoopGroup-20-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-13
09:53:41.842 [nioEventLoopGroup-20-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-12
09:53:41.841 [nioEventLoopGroup-20-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-2
09:53:41.842 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7115e290, /127.0.0.1:39006 :> /127.0.0.1:39075] INACTIVE
09:53:41.842 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb6fc6f, /127.0.0.1:39008 :> /127.0.0.1:39075] INACTIVE
09:53:41.843 [nioEventLoopGroup-20-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-5
09:53:41.863 [nioEventLoopGroup-20-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-9
09:53:41.863 [nioEventLoopGroup-20-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-1
09:53:41.864 [nioEventLoopGroup-20-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7115e290, /127.0.0.1:39006 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.864 [nioEventLoopGroup-20-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb6fc6f, /127.0.0.1:39008 :> /127.0.0.1:39075] UNREGISTERED
09:53:41.871 [nioEventLoopGroup-20-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-7
09:53:42.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.230 [MockServer thread for port: 33872] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33872
09:53:42.234 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.236 [nioEventLoopGroup-36-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:42.236 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.237 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 => /127.0.0.1:33872] FLUSH
09:53:42.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.240 [nioEventLoopGroup-37-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-37-1
09:53:42.241 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 => /127.0.0.1:33872] FLUSH
09:53:42.244 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 :> /127.0.0.1:33872] INACTIVE
09:53:42.244 [nioEventLoopGroup-36-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da8fa49, /127.0.0.1:33650 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.266 [nioEventLoopGroup-3-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-14
09:53:42.267 [nioEventLoopGroup-3-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-3-15
09:53:42.270 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.299 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.302 [nioEventLoopGroup-36-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:42.303 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.304 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 => /127.0.0.1:33872] FLUSH
09:53:42.305 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 => /127.0.0.1:33872] FLUSH
09:53:42.304 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.305 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 :> /127.0.0.1:33872] INACTIVE
09:53:42.305 [nioEventLoopGroup-36-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x26be193e, /127.0.0.1:33658 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.319 [nioEventLoopGroup-38-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-38-1
09:53:42.342 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 :> /127.0.0.1:39075] FLUSH
09:53:42.342 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 :> /127.0.0.1:39075] INACTIVE
09:53:42.343 [nioEventLoopGroup-20-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf424aebc, /127.0.0.1:39010 :> /127.0.0.1:39075] UNREGISTERED
09:53:42.343 [nioEventLoopGroup-20-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-16
09:53:42.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.357 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.363 [nioEventLoopGroup-36-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:42.364 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.365 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 => /127.0.0.1:33872] FLUSH
09:53:42.366 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.366 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 => /127.0.0.1:33872] FLUSH
09:53:42.366 [nioEventLoopGroup-39-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-39-1
09:53:42.366 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 :> /127.0.0.1:33872] INACTIVE
09:53:42.367 [nioEventLoopGroup-36-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5e49b56f, /127.0.0.1:33660 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.384 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.389 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.391 [nioEventLoopGroup-36-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:42.392 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.392 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 => /127.0.0.1:33872] FLUSH
09:53:42.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.395 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 => /127.0.0.1:33872] FLUSH
09:53:42.395 [nioEventLoopGroup-40-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-40-1
09:53:42.395 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 :> /127.0.0.1:33872] INACTIVE
09:53:42.397 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.397 [nioEventLoopGroup-36-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ef83974, /127.0.0.1:33662 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.405 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.407 [nioEventLoopGroup-36-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:42.408 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.408 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 => /127.0.0.1:33872] FLUSH
09:53:42.409 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 => /127.0.0.1:33872] FLUSH
09:53:42.410 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 :> /127.0.0.1:33872] INACTIVE
09:53:42.409 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.410 [nioEventLoopGroup-36-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x449200c3, /127.0.0.1:33664 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.411 [nioEventLoopGroup-41-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-41-1
09:53:42.413 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.418 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.420 [nioEventLoopGroup-36-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:42.421 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.421 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 => /127.0.0.1:33872] FLUSH
09:53:42.422 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 => /127.0.0.1:33872] FLUSH
09:53:42.422 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.422 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 :> /127.0.0.1:33872] INACTIVE
09:53:42.422 [nioEventLoopGroup-36-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x575549dc, /127.0.0.1:33666 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.422 [nioEventLoopGroup-42-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-42-1
09:53:42.423 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.428 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.430 [nioEventLoopGroup-36-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:42.431 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.431 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 => /127.0.0.1:33872] FLUSH
09:53:42.432 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 => /127.0.0.1:33872] FLUSH
09:53:42.432 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.433 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 :> /127.0.0.1:33872] INACTIVE
09:53:42.433 [nioEventLoopGroup-36-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfdc6d48, /127.0.0.1:33668 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.433 [nioEventLoopGroup-43-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-43-1
09:53:42.434 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.441 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.442 [nioEventLoopGroup-36-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:42.443 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.443 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 => /127.0.0.1:33872] FLUSH
09:53:42.443 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 => /127.0.0.1:33872] FLUSH
09:53:42.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.444 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 :> /127.0.0.1:33872] INACTIVE
09:53:42.444 [nioEventLoopGroup-36-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x781c4eac, /127.0.0.1:33670 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.444 [nioEventLoopGroup-44-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-44-1
09:53:42.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.451 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.452 [nioEventLoopGroup-36-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:42.453 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.453 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 => /127.0.0.1:33872] FLUSH
09:53:42.454 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 => /127.0.0.1:33872] FLUSH
09:53:42.454 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.456 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 :> /127.0.0.1:33872] INACTIVE
09:53:42.456 [nioEventLoopGroup-45-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-45-1
09:53:42.456 [nioEventLoopGroup-36-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6977727a, /127.0.0.1:33672 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.457 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.464 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.466 [nioEventLoopGroup-36-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:42.466 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.467 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 => /127.0.0.1:33872] FLUSH
09:53:42.467 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 => /127.0.0.1:33872] FLUSH
09:53:42.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.468 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 :> /127.0.0.1:33872] INACTIVE
09:53:42.468 [nioEventLoopGroup-46-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-46-1
09:53:42.468 [nioEventLoopGroup-36-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd596b9ff, /127.0.0.1:33674 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.472 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.477 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.479 [nioEventLoopGroup-36-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:42.479 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.480 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 => /127.0.0.1:33872] FLUSH
09:53:42.480 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 => /127.0.0.1:33872] FLUSH
09:53:42.480 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.480 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 :> /127.0.0.1:33872] INACTIVE
09:53:42.480 [nioEventLoopGroup-36-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cb350eb, /127.0.0.1:33676 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.481 [nioEventLoopGroup-47-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-47-1
09:53:42.485 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.488 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.490 [nioEventLoopGroup-36-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:42.490 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.490 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 => /127.0.0.1:33872] FLUSH
09:53:42.491 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.491 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 => /127.0.0.1:33872] FLUSH
09:53:42.491 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 :> /127.0.0.1:33872] INACTIVE
09:53:42.491 [nioEventLoopGroup-36-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd01c2280, /127.0.0.1:33678 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.491 [nioEventLoopGroup-48-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-48-1
09:53:42.493 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.500 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 => /127.0.0.1:33872] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.502 [nioEventLoopGroup-36-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:42.502 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.503 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 => /127.0.0.1:33872] FLUSH
09:53:42.503 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.504 [nioEventLoopGroup-49-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-49-1
09:53:42.504 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 => /127.0.0.1:33872] FLUSH
09:53:42.504 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 :> /127.0.0.1:33872] INACTIVE
09:53:42.504 [nioEventLoopGroup-36-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe4530a0e, /127.0.0.1:33680 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.513 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40963162, /127.0.0.1:33682 => /127.0.0.1:33872] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:33872
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:42.514 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.514 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.515 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:42.515 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.516 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.516 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.516 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.516 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.517 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.517 [nioEventLoopGroup-36-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:42.518 [nioEventLoopGroup-36-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:42.518 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40963162, /127.0.0.1:33682 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:42.518 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40963162, /127.0.0.1:33682 => /127.0.0.1:33872] FLUSH
09:53:42.525 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f748152, /127.0.0.1:33684 => /127.0.0.1:33872] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:33872
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:42.527 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.527 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.528 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:42.529 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.531 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.532 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.533 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.533 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.534 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:42.534 [nioEventLoopGroup-36-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:42.535 [nioEventLoopGroup-36-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:33872" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:42.535 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f748152, /127.0.0.1:33684 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:42.535 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f748152, /127.0.0.1:33684 => /127.0.0.1:33872] FLUSH
09:53:42.536 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:42.539 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 => /127.0.0.1:33872] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33872
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:42.540 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 => /127.0.0.1:33872] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.540 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 => /127.0.0.1:33872] FLUSH
09:53:42.540 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 => /127.0.0.1:33872] CLOSE()
09:53:42.540 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.541 [nioEventLoopGroup-50-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-50-1
09:53:42.548 [nioEventLoopGroup-36-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-2
09:53:42.548 [nioEventLoopGroup-36-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-1
09:53:42.548 [nioEventLoopGroup-36-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-3
09:53:42.548 [nioEventLoopGroup-36-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-4
09:53:42.548 [nioEventLoopGroup-36-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-5
09:53:42.549 [nioEventLoopGroup-36-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-6
09:53:42.549 [nioEventLoopGroup-36-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-7
09:53:42.549 [nioEventLoopGroup-36-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-8
09:53:42.549 [nioEventLoopGroup-36-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-9
09:53:42.549 [nioEventLoopGroup-36-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-10
09:53:42.549 [nioEventLoopGroup-36-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-11
09:53:42.549 [nioEventLoopGroup-36-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-13
09:53:42.549 [nioEventLoopGroup-36-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-12
09:53:42.549 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40963162, /127.0.0.1:33682 :> /127.0.0.1:33872] INACTIVE
09:53:42.549 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f748152, /127.0.0.1:33684 :> /127.0.0.1:33872] INACTIVE
09:53:42.550 [nioEventLoopGroup-36-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x40963162, /127.0.0.1:33682 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.550 [nioEventLoopGroup-36-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f748152, /127.0.0.1:33684 :> /127.0.0.1:33872] UNREGISTERED
09:53:42.865 [nioEventLoopGroup-20-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-14
09:53:42.865 [nioEventLoopGroup-20-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-20-15
09:53:42.902 [MockServer thread for port: 37461] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 37461
09:53:42.903 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.906 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.907 [nioEventLoopGroup-52-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:42.908 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.908 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 => /127.0.0.1:37461] FLUSH
09:53:42.908 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.909 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 => /127.0.0.1:37461] FLUSH
09:53:42.909 [nioEventLoopGroup-53-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-53-1
09:53:42.909 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 :> /127.0.0.1:37461] INACTIVE
09:53:42.909 [nioEventLoopGroup-52-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d04ed48, /127.0.0.1:34192 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.910 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.916 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.918 [nioEventLoopGroup-52-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:42.919 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.919 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 => /127.0.0.1:37461] FLUSH
09:53:42.920 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 => /127.0.0.1:37461] FLUSH
09:53:42.920 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 :> /127.0.0.1:37461] INACTIVE
09:53:42.920 [nioEventLoopGroup-52-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2692e68e, /127.0.0.1:34194 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.920 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.920 [nioEventLoopGroup-54-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-54-1
09:53:42.923 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.928 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.929 [nioEventLoopGroup-52-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:42.930 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.930 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 => /127.0.0.1:37461] FLUSH
09:53:42.931 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 => /127.0.0.1:37461] FLUSH
09:53:42.930 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.931 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 :> /127.0.0.1:37461] INACTIVE
09:53:42.931 [nioEventLoopGroup-52-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab6162e7, /127.0.0.1:34196 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.931 [nioEventLoopGroup-55-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-55-1
09:53:42.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.936 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.937 [nioEventLoopGroup-52-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:42.937 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.937 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 => /127.0.0.1:37461] FLUSH
09:53:42.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.938 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 => /127.0.0.1:37461] FLUSH
09:53:42.938 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 :> /127.0.0.1:37461] INACTIVE
09:53:42.938 [nioEventLoopGroup-52-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4adb5922, /127.0.0.1:34198 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.938 [nioEventLoopGroup-56-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-56-1
09:53:42.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.947 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.948 [nioEventLoopGroup-52-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:42.949 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.949 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 => /127.0.0.1:37461] FLUSH
09:53:42.949 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.949 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 => /127.0.0.1:37461] FLUSH
09:53:42.950 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 :> /127.0.0.1:37461] INACTIVE
09:53:42.950 [nioEventLoopGroup-52-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84c75590, /127.0.0.1:34200 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.950 [nioEventLoopGroup-57-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-57-1
09:53:42.952 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.956 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.958 [nioEventLoopGroup-52-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:42.958 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.958 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 => /127.0.0.1:37461] FLUSH
09:53:42.958 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.959 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 => /127.0.0.1:37461] FLUSH
09:53:42.959 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 :> /127.0.0.1:37461] INACTIVE
09:53:42.959 [nioEventLoopGroup-58-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-58-1
09:53:42.959 [nioEventLoopGroup-52-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc57eab18, /127.0.0.1:34202 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.967 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.968 [nioEventLoopGroup-52-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:42.968 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.969 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 => /127.0.0.1:37461] FLUSH
09:53:42.969 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 => /127.0.0.1:37461] FLUSH
09:53:42.969 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.969 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 :> /127.0.0.1:37461] INACTIVE
09:53:42.969 [nioEventLoopGroup-52-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8d27a69e, /127.0.0.1:34204 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.969 [nioEventLoopGroup-59-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-59-1
09:53:42.972 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.977 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.978 [nioEventLoopGroup-52-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:42.979 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.979 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 => /127.0.0.1:37461] FLUSH
09:53:42.979 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 => /127.0.0.1:37461] FLUSH
09:53:42.979 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.980 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 :> /127.0.0.1:37461] INACTIVE
09:53:42.980 [nioEventLoopGroup-52-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa72262ad, /127.0.0.1:34206 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.980 [nioEventLoopGroup-60-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-60-1
09:53:42.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.988 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.989 [nioEventLoopGroup-52-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:42.989 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.989 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 => /127.0.0.1:37461] FLUSH
09:53:42.990 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:42.990 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 => /127.0.0.1:37461] FLUSH
09:53:42.990 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 :> /127.0.0.1:37461] INACTIVE
09:53:42.990 [nioEventLoopGroup-61-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-61-1
09:53:42.990 [nioEventLoopGroup-52-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x415c5cb8, /127.0.0.1:34208 :> /127.0.0.1:37461] UNREGISTERED
09:53:42.992 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:42.996 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:42.997 [nioEventLoopGroup-52-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:42.999 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:42.999 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 => /127.0.0.1:37461] FLUSH
09:53:43.000 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 => /127.0.0.1:37461] FLUSH
09:53:43.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.000 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 :> /127.0.0.1:37461] INACTIVE
09:53:43.000 [nioEventLoopGroup-52-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x38b9427e, /127.0.0.1:34210 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.001 [nioEventLoopGroup-62-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-62-1
09:53:43.002 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.005 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.006 [nioEventLoopGroup-52-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:43.006 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.007 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 => /127.0.0.1:37461] FLUSH
09:53:43.007 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.007 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 => /127.0.0.1:37461] FLUSH
09:53:43.007 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 :> /127.0.0.1:37461] INACTIVE
09:53:43.007 [nioEventLoopGroup-52-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e40e546, /127.0.0.1:34212 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.007 [nioEventLoopGroup-63-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-63-1
09:53:43.008 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.012 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.013 [nioEventLoopGroup-52-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:43.014 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.014 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 => /127.0.0.1:37461] FLUSH
09:53:43.015 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 => /127.0.0.1:37461] FLUSH
09:53:43.014 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.015 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 :> /127.0.0.1:37461] INACTIVE
09:53:43.015 [nioEventLoopGroup-52-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa284aa19, /127.0.0.1:34214 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.015 [nioEventLoopGroup-64-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-64-1
09:53:43.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.024 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 => /127.0.0.1:37461] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.026 [nioEventLoopGroup-52-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:43.026 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.026 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 => /127.0.0.1:37461] FLUSH
09:53:43.027 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.027 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 => /127.0.0.1:37461] FLUSH
09:53:43.027 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 :> /127.0.0.1:37461] INACTIVE
09:53:43.027 [nioEventLoopGroup-52-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05887921, /127.0.0.1:34216 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.027 [nioEventLoopGroup-65-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-65-1
09:53:43.043 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb72ebd0, /127.0.0.1:34218 => /127.0.0.1:37461] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:37461
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:43.044 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.044 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.045 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:43.045 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.046 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.046 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.047 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.047 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.047 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.048 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.048 [nioEventLoopGroup-52-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:43.049 [nioEventLoopGroup-52-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:43.049 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 :> /127.0.0.1:33872] FLUSH
09:53:43.049 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 :> /127.0.0.1:33872] INACTIVE
09:53:43.049 [nioEventLoopGroup-36-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0480fb93, /127.0.0.1:33686 :> /127.0.0.1:33872] UNREGISTERED
09:53:43.049 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb72ebd0, /127.0.0.1:34218 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.050 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb72ebd0, /127.0.0.1:34218 => /127.0.0.1:37461] FLUSH
09:53:43.050 [nioEventLoopGroup-36-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-16
09:53:43.056 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca499889, /127.0.0.1:34220 => /127.0.0.1:37461] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:37461
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:43.057 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.058 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.058 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:43.058 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.059 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.059 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.060 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.060 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.060 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.061 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.061 [nioEventLoopGroup-52-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:43.062 [nioEventLoopGroup-52-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:37461" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:43.062 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca499889, /127.0.0.1:34220 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.062 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca499889, /127.0.0.1:34220 => /127.0.0.1:37461] FLUSH
09:53:43.063 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:43.066 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 => /127.0.0.1:37461] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:37461
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.067 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 => /127.0.0.1:37461] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.067 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 => /127.0.0.1:37461] FLUSH
09:53:43.068 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 => /127.0.0.1:37461] CLOSE()
09:53:43.068 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.069 [nioEventLoopGroup-66-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-66-1
09:53:43.070 [nioEventLoopGroup-52-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-2
09:53:43.070 [nioEventLoopGroup-52-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-1
09:53:43.070 [nioEventLoopGroup-52-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-9
09:53:43.070 [nioEventLoopGroup-52-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-3
09:53:43.070 [nioEventLoopGroup-52-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-11
09:53:43.070 [nioEventLoopGroup-52-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-10
09:53:43.070 [nioEventLoopGroup-52-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-4
09:53:43.070 [nioEventLoopGroup-52-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-5
09:53:43.070 [nioEventLoopGroup-52-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-6
09:53:43.070 [nioEventLoopGroup-52-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-7
09:53:43.070 [nioEventLoopGroup-52-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-8
09:53:43.071 [nioEventLoopGroup-52-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-12
09:53:43.071 [nioEventLoopGroup-52-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-13
09:53:43.071 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb72ebd0, /127.0.0.1:34218 :> /127.0.0.1:37461] INACTIVE
09:53:43.071 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca499889, /127.0.0.1:34220 :> /127.0.0.1:37461] INACTIVE
09:53:43.084 [nioEventLoopGroup-52-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca499889, /127.0.0.1:34220 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.084 [nioEventLoopGroup-52-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb72ebd0, /127.0.0.1:34218 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.445 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.446 [MockServer thread for port: 36618] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36618
09:53:43.453 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.454 [nioEventLoopGroup-68-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:43.454 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.454 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 => /127.0.0.1:36618] FLUSH
09:53:43.455 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 => /127.0.0.1:36618] FLUSH
09:53:43.455 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.455 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 :> /127.0.0.1:36618] INACTIVE
09:53:43.455 [nioEventLoopGroup-68-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x881762b8, /127.0.0.1:47744 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.459 [nioEventLoopGroup-69-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-69-1
09:53:43.464 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.469 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.471 [nioEventLoopGroup-68-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:43.474 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.475 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 => /127.0.0.1:36618] FLUSH
09:53:43.476 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 => /127.0.0.1:36618] FLUSH
09:53:43.477 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 :> /127.0.0.1:36618] INACTIVE
09:53:43.477 [nioEventLoopGroup-68-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4753559, /127.0.0.1:47748 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.478 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.479 [nioEventLoopGroup-70-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-70-1
09:53:43.496 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.513 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.515 [nioEventLoopGroup-68-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:43.515 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.515 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 => /127.0.0.1:36618] FLUSH
09:53:43.516 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.517 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 => /127.0.0.1:36618] FLUSH
09:53:43.517 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 :> /127.0.0.1:36618] INACTIVE
09:53:43.517 [nioEventLoopGroup-68-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x63ea6110, /127.0.0.1:47750 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.517 [nioEventLoopGroup-71-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-71-1
09:53:43.524 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.542 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.543 [nioEventLoopGroup-68-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:43.544 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.544 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 => /127.0.0.1:36618] FLUSH
09:53:43.549 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.549 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 => /127.0.0.1:36618] FLUSH
09:53:43.549 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 :> /127.0.0.1:36618] INACTIVE
09:53:43.549 [nioEventLoopGroup-68-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72182219, /127.0.0.1:47754 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.550 [nioEventLoopGroup-72-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-72-1
09:53:43.551 [nioEventLoopGroup-36-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-15
09:53:43.551 [nioEventLoopGroup-36-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-36-14
09:53:43.570 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 :> /127.0.0.1:37461] FLUSH
09:53:43.570 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 :> /127.0.0.1:37461] INACTIVE
09:53:43.570 [nioEventLoopGroup-52-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3cacabd1, /127.0.0.1:34222 :> /127.0.0.1:37461] UNREGISTERED
09:53:43.571 [nioEventLoopGroup-52-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-16
09:53:43.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.633 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.635 [nioEventLoopGroup-68-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:43.635 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.635 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 => /127.0.0.1:36618] FLUSH
09:53:43.636 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 => /127.0.0.1:36618] FLUSH
09:53:43.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.636 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 :> /127.0.0.1:36618] INACTIVE
09:53:43.636 [nioEventLoopGroup-68-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b692b27, /127.0.0.1:47758 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.636 [nioEventLoopGroup-73-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-73-1
09:53:43.645 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.687 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.688 [nioEventLoopGroup-68-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:43.689 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.689 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 => /127.0.0.1:36618] FLUSH
09:53:43.690 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 => /127.0.0.1:36618] FLUSH
09:53:43.690 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.690 [nioEventLoopGroup-74-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-74-1
09:53:43.690 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 :> /127.0.0.1:36618] INACTIVE
09:53:43.690 [nioEventLoopGroup-68-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71620bcc, /127.0.0.1:47760 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.700 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.702 [nioEventLoopGroup-68-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:43.702 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.702 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 => /127.0.0.1:36618] FLUSH
09:53:43.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.703 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 => /127.0.0.1:36618] FLUSH
09:53:43.703 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 :> /127.0.0.1:36618] INACTIVE
09:53:43.703 [nioEventLoopGroup-68-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9e26ef1c, /127.0.0.1:47762 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.703 [nioEventLoopGroup-75-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-75-1
09:53:43.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.715 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.718 [nioEventLoopGroup-68-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:43.718 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.719 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 => /127.0.0.1:36618] FLUSH
09:53:43.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.721 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 => /127.0.0.1:36618] FLUSH
09:53:43.721 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 :> /127.0.0.1:36618] INACTIVE
09:53:43.721 [nioEventLoopGroup-68-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3593f9, /127.0.0.1:47764 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.723 [nioEventLoopGroup-76-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-76-1
09:53:43.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.728 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.729 [nioEventLoopGroup-68-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:43.729 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.729 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 => /127.0.0.1:36618] FLUSH
09:53:43.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.730 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 => /127.0.0.1:36618] FLUSH
09:53:43.731 [nioEventLoopGroup-77-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-77-1
09:53:43.731 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 :> /127.0.0.1:36618] INACTIVE
09:53:43.731 [nioEventLoopGroup-68-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xceaab56c, /127.0.0.1:47766 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.759 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.760 [nioEventLoopGroup-68-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:43.761 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.761 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 => /127.0.0.1:36618] FLUSH
09:53:43.762 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 => /127.0.0.1:36618] FLUSH
09:53:43.762 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 :> /127.0.0.1:36618] INACTIVE
09:53:43.762 [nioEventLoopGroup-68-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48f990e8, /127.0.0.1:47768 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.767 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.767 [nioEventLoopGroup-78-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-78-1
09:53:43.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.774 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.775 [nioEventLoopGroup-68-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:43.775 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.775 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 => /127.0.0.1:36618] FLUSH
09:53:43.776 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 => /127.0.0.1:36618] FLUSH
09:53:43.776 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.776 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 :> /127.0.0.1:36618] INACTIVE
09:53:43.776 [nioEventLoopGroup-68-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x707ca182, /127.0.0.1:47770 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.776 [nioEventLoopGroup-79-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-79-1
09:53:43.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.786 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.788 [nioEventLoopGroup-68-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:43.788 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.788 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 => /127.0.0.1:36618] FLUSH
09:53:43.789 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.789 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 => /127.0.0.1:36618] FLUSH
09:53:43.789 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 :> /127.0.0.1:36618] INACTIVE
09:53:43.789 [nioEventLoopGroup-68-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe40e5252, /127.0.0.1:47772 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.789 [nioEventLoopGroup-80-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-80-1
09:53:43.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:43.793 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 => /127.0.0.1:36618] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:43.795 [nioEventLoopGroup-68-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:43.795 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.795 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 => /127.0.0.1:36618] FLUSH
09:53:43.796 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 => /127.0.0.1:36618] FLUSH
09:53:43.796 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 :> /127.0.0.1:36618] INACTIVE
09:53:43.796 [nioEventLoopGroup-68-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd76e2794, /127.0.0.1:47774 :> /127.0.0.1:36618] UNREGISTERED
09:53:43.796 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.796 [nioEventLoopGroup-81-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-81-1
09:53:43.823 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36618
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:43.824 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.824 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.825 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:43.825 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.825 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.826 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.826 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.827 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:43.828 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:43.828 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.828 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] FLUSH
09:53:43.830 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36618
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:43.831 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.832 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.832 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:43.832 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.833 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.833 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.834 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:43.834 [nioEventLoopGroup-68-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:43.835 [nioEventLoopGroup-68-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36618" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:43.835 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.836 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 => /127.0.0.1:36618] FLUSH
09:53:43.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:43.840 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 => /127.0.0.1:36618] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36618
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:43.841 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 => /127.0.0.1:36618] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:43.841 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 => /127.0.0.1:36618] FLUSH
09:53:43.842 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 => /127.0.0.1:36618] CLOSE()
09:53:43.842 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:43.843 [nioEventLoopGroup-82-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-82-1
09:53:43.863 [nioEventLoopGroup-68-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-3
09:53:43.863 [nioEventLoopGroup-68-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-6
09:53:43.863 [nioEventLoopGroup-68-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-2
09:53:43.863 [nioEventLoopGroup-68-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-1
09:53:43.863 [nioEventLoopGroup-68-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-5
09:53:43.863 [nioEventLoopGroup-68-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-7
09:53:43.864 [nioEventLoopGroup-68-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-8
09:53:43.864 [nioEventLoopGroup-68-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-12
09:53:43.864 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 :> /127.0.0.1:36618] INACTIVE
09:53:43.864 [nioEventLoopGroup-68-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-4
09:53:43.864 [nioEventLoopGroup-68-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-9
09:53:43.864 [nioEventLoopGroup-68-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-13
09:53:43.864 [nioEventLoopGroup-68-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-10
09:53:43.864 [nioEventLoopGroup-68-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-11
09:53:43.864 [nioEventLoopGroup-68-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec05fd57, /127.0.0.1:47776 :> /127.0.0.1:36618] UNREGISTERED
09:53:44.086 [nioEventLoopGroup-52-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-15
09:53:44.086 [nioEventLoopGroup-52-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-52-14
09:53:44.205 [MockServer thread for port: 32806] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 32806
09:53:44.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.209 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.210 [nioEventLoopGroup-84-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.210 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.210 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 => /127.0.0.1:32806] FLUSH
09:53:44.211 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 => /127.0.0.1:32806] FLUSH
09:53:44.211 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.211 [nioEventLoopGroup-85-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-85-1
09:53:44.211 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 :> /127.0.0.1:32806] INACTIVE
09:53:44.211 [nioEventLoopGroup-84-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcb1126c8, /127.0.0.1:58336 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.219 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.223 [nioEventLoopGroup-84-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:44.224 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.224 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 => /127.0.0.1:32806] FLUSH
09:53:44.225 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 => /127.0.0.1:32806] FLUSH
09:53:44.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.225 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 :> /127.0.0.1:32806] INACTIVE
09:53:44.225 [nioEventLoopGroup-86-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-86-1
09:53:44.225 [nioEventLoopGroup-84-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3a2b357a, /127.0.0.1:58338 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.232 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.236 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.238 [nioEventLoopGroup-84-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:44.239 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.239 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 => /127.0.0.1:32806] FLUSH
09:53:44.240 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 => /127.0.0.1:32806] FLUSH
09:53:44.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.240 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 :> /127.0.0.1:32806] INACTIVE
09:53:44.240 [nioEventLoopGroup-87-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-87-1
09:53:44.240 [nioEventLoopGroup-84-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6392125, /127.0.0.1:58340 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.241 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.245 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.246 [nioEventLoopGroup-84-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.247 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.247 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 => /127.0.0.1:32806] FLUSH
09:53:44.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.248 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 => /127.0.0.1:32806] FLUSH
09:53:44.249 [nioEventLoopGroup-88-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-88-1
09:53:44.249 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 :> /127.0.0.1:32806] INACTIVE
09:53:44.249 [nioEventLoopGroup-84-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68bd5182, /127.0.0.1:58342 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.254 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.255 [nioEventLoopGroup-84-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:44.256 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.256 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 => /127.0.0.1:32806] FLUSH
09:53:44.256 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 => /127.0.0.1:32806] FLUSH
09:53:44.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.257 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 :> /127.0.0.1:32806] INACTIVE
09:53:44.257 [nioEventLoopGroup-84-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x514af393, /127.0.0.1:58344 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.257 [nioEventLoopGroup-89-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-89-1
09:53:44.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.262 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.263 [nioEventLoopGroup-84-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:44.263 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.263 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 => /127.0.0.1:32806] FLUSH
09:53:44.264 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.264 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 => /127.0.0.1:32806] FLUSH
09:53:44.264 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 :> /127.0.0.1:32806] INACTIVE
09:53:44.264 [nioEventLoopGroup-84-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4087c6, /127.0.0.1:58346 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.264 [nioEventLoopGroup-90-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-90-1
09:53:44.265 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.270 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.272 [nioEventLoopGroup-84-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:44.272 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.273 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 => /127.0.0.1:32806] FLUSH
09:53:44.273 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 => /127.0.0.1:32806] FLUSH
09:53:44.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.273 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 :> /127.0.0.1:32806] INACTIVE
09:53:44.273 [nioEventLoopGroup-84-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47957395, /127.0.0.1:58348 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.273 [nioEventLoopGroup-91-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-91-1
09:53:44.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.279 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.280 [nioEventLoopGroup-84-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:44.280 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.280 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 => /127.0.0.1:32806] FLUSH
09:53:44.280 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.281 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 => /127.0.0.1:32806] FLUSH
09:53:44.281 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 :> /127.0.0.1:32806] INACTIVE
09:53:44.281 [nioEventLoopGroup-84-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5f70d11, /127.0.0.1:58350 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.281 [nioEventLoopGroup-92-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-92-1
09:53:44.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.286 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.287 [nioEventLoopGroup-84-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:44.287 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.287 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 => /127.0.0.1:32806] FLUSH
09:53:44.288 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 => /127.0.0.1:32806] FLUSH
09:53:44.288 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.288 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 :> /127.0.0.1:32806] INACTIVE
09:53:44.288 [nioEventLoopGroup-84-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ca1c0ff, /127.0.0.1:58352 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.289 [nioEventLoopGroup-93-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-93-1
09:53:44.290 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.293 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.295 [nioEventLoopGroup-84-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:44.295 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.295 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 => /127.0.0.1:32806] FLUSH
09:53:44.296 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 => /127.0.0.1:32806] FLUSH
09:53:44.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.296 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 :> /127.0.0.1:32806] INACTIVE
09:53:44.296 [nioEventLoopGroup-84-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05cac86c, /127.0.0.1:58354 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.296 [nioEventLoopGroup-94-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-94-1
09:53:44.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.300 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.302 [nioEventLoopGroup-84-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:44.302 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.302 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 => /127.0.0.1:32806] FLUSH
09:53:44.303 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.303 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 => /127.0.0.1:32806] FLUSH
09:53:44.303 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 :> /127.0.0.1:32806] INACTIVE
09:53:44.303 [nioEventLoopGroup-84-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734f70e0, /127.0.0.1:58356 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.303 [nioEventLoopGroup-95-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-95-1
09:53:44.304 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.307 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.308 [nioEventLoopGroup-84-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:44.309 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.309 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 => /127.0.0.1:32806] FLUSH
09:53:44.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.309 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 => /127.0.0.1:32806] FLUSH
09:53:44.309 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 :> /127.0.0.1:32806] INACTIVE
09:53:44.309 [nioEventLoopGroup-84-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa807d29f, /127.0.0.1:58358 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.309 [nioEventLoopGroup-96-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-96-1
09:53:44.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.315 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 => /127.0.0.1:32806] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.317 [nioEventLoopGroup-84-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.317 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.317 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 => /127.0.0.1:32806] FLUSH
09:53:44.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.318 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 => /127.0.0.1:32806] FLUSH
09:53:44.318 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 :> /127.0.0.1:32806] INACTIVE
09:53:44.318 [nioEventLoopGroup-84-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5ce029b, /127.0.0.1:58360 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.318 [nioEventLoopGroup-97-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-97-1
09:53:44.321 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:32806
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:44.321 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.322 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.322 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:44.323 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.323 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.324 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.324 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.324 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.325 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:44.325 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:44.326 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.326 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] FLUSH
09:53:44.328 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:32806
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:44.328 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.329 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.329 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:44.329 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.330 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.330 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.331 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.331 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.331 [nioEventLoopGroup-84-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:44.332 [nioEventLoopGroup-84-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:32806" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:44.332 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.333 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 => /127.0.0.1:32806] FLUSH
09:53:44.333 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:44.337 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 => /127.0.0.1:32806] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:32806
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.338 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 => /127.0.0.1:32806] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.338 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 => /127.0.0.1:32806] FLUSH
09:53:44.338 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 => /127.0.0.1:32806] CLOSE()
09:53:44.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.340 [nioEventLoopGroup-98-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-98-1
09:53:44.344 [nioEventLoopGroup-84-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-3
09:53:44.344 [nioEventLoopGroup-84-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-1
09:53:44.344 [nioEventLoopGroup-84-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-2
09:53:44.344 [nioEventLoopGroup-84-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-8
09:53:44.344 [nioEventLoopGroup-84-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-10
09:53:44.344 [nioEventLoopGroup-84-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-4
09:53:44.344 [nioEventLoopGroup-84-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-5
09:53:44.344 [nioEventLoopGroup-84-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-11
09:53:44.344 [nioEventLoopGroup-84-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-6
09:53:44.344 [nioEventLoopGroup-84-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-7
09:53:44.344 [nioEventLoopGroup-84-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-9
09:53:44.344 [nioEventLoopGroup-84-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-12
09:53:44.344 [nioEventLoopGroup-84-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-13
09:53:44.345 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 :> /127.0.0.1:32806] INACTIVE
09:53:44.345 [nioEventLoopGroup-84-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0e9f8, /127.0.0.1:58362 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.364 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 :> /127.0.0.1:36618] FLUSH
09:53:44.364 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 :> /127.0.0.1:36618] INACTIVE
09:53:44.364 [nioEventLoopGroup-68-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x83cf4bac, /127.0.0.1:47778 :> /127.0.0.1:36618] UNREGISTERED
09:53:44.365 [nioEventLoopGroup-68-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-15
09:53:44.694 [MockServer thread for port: 43879] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43879
09:53:44.694 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.698 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.700 [nioEventLoopGroup-100-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.701 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.701 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 => /127.0.0.1:43879] FLUSH
09:53:44.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.703 [nioEventLoopGroup-101-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-101-1
09:53:44.703 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 => /127.0.0.1:43879] FLUSH
09:53:44.704 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 :> /127.0.0.1:43879] INACTIVE
09:53:44.704 [nioEventLoopGroup-100-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x580ab336, /127.0.0.1:33592 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.713 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.715 [nioEventLoopGroup-100-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:44.715 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.715 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 => /127.0.0.1:43879] FLUSH
09:53:44.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.715 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 => /127.0.0.1:43879] FLUSH
09:53:44.716 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 :> /127.0.0.1:43879] INACTIVE
09:53:44.716 [nioEventLoopGroup-102-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-102-1
09:53:44.716 [nioEventLoopGroup-100-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16884f37, /127.0.0.1:33594 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.719 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.720 [nioEventLoopGroup-100-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:44.721 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.721 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 => /127.0.0.1:43879] FLUSH
09:53:44.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.721 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 => /127.0.0.1:43879] FLUSH
09:53:44.721 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 :> /127.0.0.1:43879] INACTIVE
09:53:44.722 [nioEventLoopGroup-100-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa8d039d, /127.0.0.1:33596 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.722 [nioEventLoopGroup-103-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-103-1
09:53:44.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.727 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.729 [nioEventLoopGroup-100-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.729 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.729 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 => /127.0.0.1:43879] FLUSH
09:53:44.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.731 [nioEventLoopGroup-104-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-104-1
09:53:44.731 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 => /127.0.0.1:43879] FLUSH
09:53:44.732 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 :> /127.0.0.1:43879] INACTIVE
09:53:44.732 [nioEventLoopGroup-100-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8c1eed6, /127.0.0.1:33598 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.735 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.737 [nioEventLoopGroup-100-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:44.737 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.737 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 => /127.0.0.1:43879] FLUSH
09:53:44.738 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 => /127.0.0.1:43879] FLUSH
09:53:44.737 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.738 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 :> /127.0.0.1:43879] INACTIVE
09:53:44.738 [nioEventLoopGroup-100-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac454ec6, /127.0.0.1:33600 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.738 [nioEventLoopGroup-105-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-105-1
09:53:44.741 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.744 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.745 [nioEventLoopGroup-100-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:44.745 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.746 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 => /127.0.0.1:43879] FLUSH
09:53:44.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.746 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 => /127.0.0.1:43879] FLUSH
09:53:44.746 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 :> /127.0.0.1:43879] INACTIVE
09:53:44.746 [nioEventLoopGroup-100-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98875690, /127.0.0.1:33602 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.746 [nioEventLoopGroup-106-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-106-1
09:53:44.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.753 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.754 [nioEventLoopGroup-100-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:44.755 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.755 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 => /127.0.0.1:43879] FLUSH
09:53:44.755 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 => /127.0.0.1:43879] FLUSH
09:53:44.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.756 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 :> /127.0.0.1:43879] INACTIVE
09:53:44.756 [nioEventLoopGroup-107-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-107-1
09:53:44.756 [nioEventLoopGroup-100-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b3c8f0, /127.0.0.1:33604 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.757 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.764 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.765 [nioEventLoopGroup-100-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:44.766 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.766 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 => /127.0.0.1:43879] FLUSH
09:53:44.766 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 => /127.0.0.1:43879] FLUSH
09:53:44.766 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.767 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 :> /127.0.0.1:43879] INACTIVE
09:53:44.767 [nioEventLoopGroup-100-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcee5dc13, /127.0.0.1:33606 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.767 [nioEventLoopGroup-108-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-108-1
09:53:44.770 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.774 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.775 [nioEventLoopGroup-100-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:44.776 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.776 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 => /127.0.0.1:43879] FLUSH
09:53:44.776 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 => /127.0.0.1:43879] FLUSH
09:53:44.776 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.776 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 :> /127.0.0.1:43879] INACTIVE
09:53:44.776 [nioEventLoopGroup-100-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd892fa0d, /127.0.0.1:33608 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.777 [nioEventLoopGroup-109-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-109-1
09:53:44.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.782 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.783 [nioEventLoopGroup-100-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:44.783 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.784 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 => /127.0.0.1:43879] FLUSH
09:53:44.784 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.784 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 => /127.0.0.1:43879] FLUSH
09:53:44.784 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 :> /127.0.0.1:43879] INACTIVE
09:53:44.784 [nioEventLoopGroup-100-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e744952, /127.0.0.1:33610 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.784 [nioEventLoopGroup-110-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-110-1
09:53:44.785 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.790 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.791 [nioEventLoopGroup-100-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:44.791 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.792 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 => /127.0.0.1:43879] FLUSH
09:53:44.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.792 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 => /127.0.0.1:43879] FLUSH
09:53:44.792 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 :> /127.0.0.1:43879] INACTIVE
09:53:44.792 [nioEventLoopGroup-100-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3ba09aec, /127.0.0.1:33612 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.793 [nioEventLoopGroup-111-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-111-1
09:53:44.794 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.799 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.801 [nioEventLoopGroup-100-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:44.801 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.801 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 => /127.0.0.1:43879] FLUSH
09:53:44.801 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.802 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 => /127.0.0.1:43879] FLUSH
09:53:44.802 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 :> /127.0.0.1:43879] INACTIVE
09:53:44.802 [nioEventLoopGroup-100-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6d8f840, /127.0.0.1:33614 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.802 [nioEventLoopGroup-112-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-112-1
09:53:44.804 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:44.806 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 => /127.0.0.1:43879] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:44.807 [nioEventLoopGroup-100-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:44.808 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.808 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 => /127.0.0.1:43879] FLUSH
09:53:44.808 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.808 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 => /127.0.0.1:43879] FLUSH
09:53:44.809 [nioEventLoopGroup-113-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-113-1
09:53:44.809 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 :> /127.0.0.1:43879] INACTIVE
09:53:44.809 [nioEventLoopGroup-100-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b34a099, /127.0.0.1:33616 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.812 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43879
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:44.813 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.814 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.814 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:44.815 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.815 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.816 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.816 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.816 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.817 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.818 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:44.819 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:44.819 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.819 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] FLUSH
09:53:44.823 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43879
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:44.823 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.824 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.825 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:44.826 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.826 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.827 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.828 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.828 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.829 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:44.829 [nioEventLoopGroup-100-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:44.830 [nioEventLoopGroup-100-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43879" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:44.830 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.830 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 => /127.0.0.1:43879] FLUSH
09:53:44.831 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:44.834 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 => /127.0.0.1:43879] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43879
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:44.835 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 => /127.0.0.1:43879] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:44.835 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 => /127.0.0.1:43879] FLUSH
09:53:44.835 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 => /127.0.0.1:43879] CLOSE()
09:53:44.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:44.836 [nioEventLoopGroup-114-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-114-1
09:53:44.845 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 :> /127.0.0.1:32806] FLUSH
09:53:44.845 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 :> /127.0.0.1:32806] INACTIVE
09:53:44.845 [nioEventLoopGroup-84-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7dd60357, /127.0.0.1:58364 :> /127.0.0.1:32806] UNREGISTERED
09:53:44.845 [nioEventLoopGroup-84-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-15
09:53:44.848 [nioEventLoopGroup-100-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-6
09:53:44.848 [nioEventLoopGroup-100-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-8
09:53:44.848 [nioEventLoopGroup-100-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-1
09:53:44.848 [nioEventLoopGroup-100-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-4
09:53:44.848 [nioEventLoopGroup-100-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-2
09:53:44.848 [nioEventLoopGroup-100-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-3
09:53:44.848 [nioEventLoopGroup-100-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-5
09:53:44.848 [nioEventLoopGroup-100-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-7
09:53:44.848 [nioEventLoopGroup-100-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-9
09:53:44.848 [nioEventLoopGroup-100-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-10
09:53:44.848 [nioEventLoopGroup-100-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-11
09:53:44.848 [nioEventLoopGroup-100-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-12
09:53:44.848 [nioEventLoopGroup-100-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-13
09:53:44.848 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 :> /127.0.0.1:43879] INACTIVE
09:53:44.851 [nioEventLoopGroup-100-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6af66db, /127.0.0.1:33618 :> /127.0.0.1:43879] UNREGISTERED
09:53:44.865 [nioEventLoopGroup-68-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-68-14
09:53:45.198 [MockServer thread for port: 34457] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34457
09:53:45.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.203 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.204 [nioEventLoopGroup-116-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.204 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.204 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 => /127.0.0.1:34457] FLUSH
09:53:45.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.205 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 => /127.0.0.1:34457] FLUSH
09:53:45.205 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 :> /127.0.0.1:34457] INACTIVE
09:53:45.205 [nioEventLoopGroup-116-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6a92dad, /127.0.0.1:59952 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.205 [nioEventLoopGroup-117-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-117-1
09:53:45.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.213 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.215 [nioEventLoopGroup-116-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:45.216 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.216 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 => /127.0.0.1:34457] FLUSH
09:53:45.217 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 => /127.0.0.1:34457] FLUSH
09:53:45.217 [nioEventLoopGroup-118-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-118-1
09:53:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 :> /127.0.0.1:34457] INACTIVE
09:53:45.217 [nioEventLoopGroup-116-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54cceec8, /127.0.0.1:59954 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.223 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.224 [nioEventLoopGroup-116-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:45.224 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.224 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 => /127.0.0.1:34457] FLUSH
09:53:45.225 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.225 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 => /127.0.0.1:34457] FLUSH
09:53:45.225 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 :> /127.0.0.1:34457] INACTIVE
09:53:45.225 [nioEventLoopGroup-116-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x21133caf, /127.0.0.1:59956 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.225 [nioEventLoopGroup-119-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-119-1
09:53:45.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.228 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.229 [nioEventLoopGroup-116-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.229 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.230 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 => /127.0.0.1:34457] FLUSH
09:53:45.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.230 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 => /127.0.0.1:34457] FLUSH
09:53:45.230 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 :> /127.0.0.1:34457] INACTIVE
09:53:45.230 [nioEventLoopGroup-116-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c7c58e4, /127.0.0.1:59958 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.230 [nioEventLoopGroup-120-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-120-1
09:53:45.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.236 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.237 [nioEventLoopGroup-116-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:45.238 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.238 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 => /127.0.0.1:34457] FLUSH
09:53:45.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.238 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 => /127.0.0.1:34457] FLUSH
09:53:45.238 [nioEventLoopGroup-121-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-121-1
09:53:45.238 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 :> /127.0.0.1:34457] INACTIVE
09:53:45.238 [nioEventLoopGroup-116-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x01ef252c, /127.0.0.1:59960 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.253 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.254 [nioEventLoopGroup-116-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:45.254 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.254 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 => /127.0.0.1:34457] FLUSH
09:53:45.255 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 => /127.0.0.1:34457] FLUSH
09:53:45.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.255 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 :> /127.0.0.1:34457] INACTIVE
09:53:45.255 [nioEventLoopGroup-116-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb04e6226, /127.0.0.1:59962 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.255 [nioEventLoopGroup-122-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-122-1
09:53:45.257 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.259 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.260 [nioEventLoopGroup-116-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:45.260 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.261 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 => /127.0.0.1:34457] FLUSH
09:53:45.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.261 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 => /127.0.0.1:34457] FLUSH
09:53:45.261 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 :> /127.0.0.1:34457] INACTIVE
09:53:45.261 [nioEventLoopGroup-116-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3e3d32e9, /127.0.0.1:59964 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.262 [nioEventLoopGroup-123-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-123-1
09:53:45.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.268 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.268 [nioEventLoopGroup-116-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:45.269 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.269 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 => /127.0.0.1:34457] FLUSH
09:53:45.269 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 => /127.0.0.1:34457] FLUSH
09:53:45.269 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.269 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 :> /127.0.0.1:34457] INACTIVE
09:53:45.269 [nioEventLoopGroup-116-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd6d94b52, /127.0.0.1:59966 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.269 [nioEventLoopGroup-124-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-124-1
09:53:45.272 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.274 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.275 [nioEventLoopGroup-116-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:45.275 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.275 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 => /127.0.0.1:34457] FLUSH
09:53:45.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.276 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 => /127.0.0.1:34457] FLUSH
09:53:45.276 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 :> /127.0.0.1:34457] INACTIVE
09:53:45.276 [nioEventLoopGroup-125-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-125-1
09:53:45.276 [nioEventLoopGroup-116-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x82430aef, /127.0.0.1:59968 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.278 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.280 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.281 [nioEventLoopGroup-116-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:45.281 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.282 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 => /127.0.0.1:34457] FLUSH
09:53:45.282 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 => /127.0.0.1:34457] FLUSH
09:53:45.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.282 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 :> /127.0.0.1:34457] INACTIVE
09:53:45.282 [nioEventLoopGroup-116-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae399ca8, /127.0.0.1:59970 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.283 [nioEventLoopGroup-126-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-126-1
09:53:45.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.286 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.287 [nioEventLoopGroup-116-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:45.287 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.287 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 => /127.0.0.1:34457] FLUSH
09:53:45.288 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.288 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 => /127.0.0.1:34457] FLUSH
09:53:45.288 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 :> /127.0.0.1:34457] INACTIVE
09:53:45.288 [nioEventLoopGroup-116-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x737c938f, /127.0.0.1:59972 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.288 [nioEventLoopGroup-127-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-127-1
09:53:45.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.291 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.292 [nioEventLoopGroup-116-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:45.292 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.292 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 => /127.0.0.1:34457] FLUSH
09:53:45.293 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.293 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 => /127.0.0.1:34457] FLUSH
09:53:45.293 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 :> /127.0.0.1:34457] INACTIVE
09:53:45.293 [nioEventLoopGroup-116-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2717789, /127.0.0.1:59974 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.293 [nioEventLoopGroup-128-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-128-1
09:53:45.294 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.296 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 => /127.0.0.1:34457] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.297 [nioEventLoopGroup-116-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.298 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.298 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 => /127.0.0.1:34457] FLUSH
09:53:45.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.298 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 => /127.0.0.1:34457] FLUSH
09:53:45.298 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 :> /127.0.0.1:34457] INACTIVE
09:53:45.298 [nioEventLoopGroup-116-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf464d8a6, /127.0.0.1:59976 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.298 [nioEventLoopGroup-129-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-129-1
09:53:45.301 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34457
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:45.301 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.301 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.302 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:45.302 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.302 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.302 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.302 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.303 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.303 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.303 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.303 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:45.304 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:45.304 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.304 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] FLUSH
09:53:45.307 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:34457
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:45.307 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.308 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.308 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:45.308 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.308 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.308 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.309 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.309 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.309 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.309 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.309 [nioEventLoopGroup-116-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:45.310 [nioEventLoopGroup-116-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:34457" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:45.310 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.310 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 => /127.0.0.1:34457] FLUSH
09:53:45.311 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:45.314 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 => /127.0.0.1:34457] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34457
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.315 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 => /127.0.0.1:34457] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.315 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 => /127.0.0.1:34457] FLUSH
09:53:45.315 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 => /127.0.0.1:34457] CLOSE()
09:53:45.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.316 [nioEventLoopGroup-130-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-130-1
09:53:45.317 [nioEventLoopGroup-116-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-1
09:53:45.317 [nioEventLoopGroup-116-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-4
09:53:45.317 [nioEventLoopGroup-116-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-2
09:53:45.317 [nioEventLoopGroup-116-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-3
09:53:45.317 [nioEventLoopGroup-116-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-7
09:53:45.317 [nioEventLoopGroup-116-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-5
09:53:45.317 [nioEventLoopGroup-116-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-6
09:53:45.317 [nioEventLoopGroup-116-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-8
09:53:45.317 [nioEventLoopGroup-116-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-10
09:53:45.317 [nioEventLoopGroup-116-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-9
09:53:45.317 [nioEventLoopGroup-116-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-11
09:53:45.317 [nioEventLoopGroup-116-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-13
09:53:45.318 [nioEventLoopGroup-116-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-12
09:53:45.318 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 :> /127.0.0.1:34457] INACTIVE
09:53:45.318 [nioEventLoopGroup-116-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4d38de60, /127.0.0.1:59978 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.346 [nioEventLoopGroup-84-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-84-14
09:53:45.350 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 :> /127.0.0.1:43879] FLUSH
09:53:45.350 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 :> /127.0.0.1:43879] INACTIVE
09:53:45.351 [nioEventLoopGroup-100-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9db31a03, /127.0.0.1:33624 :> /127.0.0.1:43879] UNREGISTERED
09:53:45.351 [nioEventLoopGroup-100-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-15
09:53:45.672 [MockServer thread for port: 41973] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41973
09:53:45.673 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.676 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.678 [nioEventLoopGroup-132-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.678 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.678 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 => /127.0.0.1:41973] FLUSH
09:53:45.679 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.679 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 => /127.0.0.1:41973] FLUSH
09:53:45.679 [nioEventLoopGroup-133-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-133-1
09:53:45.679 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 :> /127.0.0.1:41973] INACTIVE
09:53:45.679 [nioEventLoopGroup-132-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5354cfa, /127.0.0.1:39744 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.684 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.686 [nioEventLoopGroup-132-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:45.686 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.686 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 => /127.0.0.1:41973] FLUSH
09:53:45.686 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.687 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 => /127.0.0.1:41973] FLUSH
09:53:45.687 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 :> /127.0.0.1:41973] INACTIVE
09:53:45.687 [nioEventLoopGroup-134-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-134-1
09:53:45.687 [nioEventLoopGroup-132-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62633de4, /127.0.0.1:39746 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.688 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.690 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.691 [nioEventLoopGroup-132-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:45.692 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.692 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 => /127.0.0.1:41973] FLUSH
09:53:45.692 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 => /127.0.0.1:41973] FLUSH
09:53:45.692 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.692 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 :> /127.0.0.1:41973] INACTIVE
09:53:45.693 [nioEventLoopGroup-132-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79266861, /127.0.0.1:39748 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.693 [nioEventLoopGroup-135-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-135-1
09:53:45.696 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.699 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.700 [nioEventLoopGroup-132-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.700 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.700 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 => /127.0.0.1:41973] FLUSH
09:53:45.700 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.700 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 => /127.0.0.1:41973] FLUSH
09:53:45.701 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 :> /127.0.0.1:41973] INACTIVE
09:53:45.701 [nioEventLoopGroup-136-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-136-1
09:53:45.701 [nioEventLoopGroup-132-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed339fe0, /127.0.0.1:39750 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.704 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.705 [nioEventLoopGroup-132-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:45.705 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.705 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 => /127.0.0.1:41973] FLUSH
09:53:45.706 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 => /127.0.0.1:41973] FLUSH
09:53:45.706 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.706 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 :> /127.0.0.1:41973] INACTIVE
09:53:45.706 [nioEventLoopGroup-132-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33e5e0ba, /127.0.0.1:39752 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.706 [nioEventLoopGroup-137-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-137-1
09:53:45.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.710 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.711 [nioEventLoopGroup-132-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:45.712 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.712 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 => /127.0.0.1:41973] FLUSH
09:53:45.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.713 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 => /127.0.0.1:41973] FLUSH
09:53:45.713 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 :> /127.0.0.1:41973] INACTIVE
09:53:45.713 [nioEventLoopGroup-132-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4161a070, /127.0.0.1:39754 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.713 [nioEventLoopGroup-138-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-138-1
09:53:45.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.716 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.717 [nioEventLoopGroup-132-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:45.717 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.717 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 => /127.0.0.1:41973] FLUSH
09:53:45.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.718 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 => /127.0.0.1:41973] FLUSH
09:53:45.718 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 :> /127.0.0.1:41973] INACTIVE
09:53:45.718 [nioEventLoopGroup-132-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x300f0a5f, /127.0.0.1:39756 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.718 [nioEventLoopGroup-139-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-139-1
09:53:45.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.722 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.723 [nioEventLoopGroup-132-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:45.723 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.723 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 => /127.0.0.1:41973] FLUSH
09:53:45.723 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.723 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 => /127.0.0.1:41973] FLUSH
09:53:45.724 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 :> /127.0.0.1:41973] INACTIVE
09:53:45.724 [nioEventLoopGroup-132-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c57f415, /127.0.0.1:39758 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.724 [nioEventLoopGroup-140-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-140-1
09:53:45.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.727 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.728 [nioEventLoopGroup-132-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:45.728 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.729 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 => /127.0.0.1:41973] FLUSH
09:53:45.729 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.729 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 => /127.0.0.1:41973] FLUSH
09:53:45.729 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 :> /127.0.0.1:41973] INACTIVE
09:53:45.729 [nioEventLoopGroup-132-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc5b86cae, /127.0.0.1:39760 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.729 [nioEventLoopGroup-141-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-141-1
09:53:45.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.732 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.733 [nioEventLoopGroup-132-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:45.733 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.733 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 => /127.0.0.1:41973] FLUSH
09:53:45.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.734 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 => /127.0.0.1:41973] FLUSH
09:53:45.734 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 :> /127.0.0.1:41973] INACTIVE
09:53:45.734 [nioEventLoopGroup-132-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf01f3ce8, /127.0.0.1:39762 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.734 [nioEventLoopGroup-142-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-142-1
09:53:45.736 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.738 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.739 [nioEventLoopGroup-132-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:45.739 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.739 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 => /127.0.0.1:41973] FLUSH
09:53:45.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.739 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 => /127.0.0.1:41973] FLUSH
09:53:45.740 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 :> /127.0.0.1:41973] INACTIVE
09:53:45.740 [nioEventLoopGroup-143-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-143-1
09:53:45.740 [nioEventLoopGroup-132-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9bdf09c7, /127.0.0.1:39764 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.742 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.745 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.746 [nioEventLoopGroup-132-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:45.746 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.746 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 => /127.0.0.1:41973] FLUSH
09:53:45.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.747 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 => /127.0.0.1:41973] FLUSH
09:53:45.747 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 :> /127.0.0.1:41973] INACTIVE
09:53:45.747 [nioEventLoopGroup-132-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x52ac2202, /127.0.0.1:39766 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.747 [nioEventLoopGroup-144-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-144-1
09:53:45.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:45.752 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 => /127.0.0.1:41973] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:45.753 [nioEventLoopGroup-132-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:45.753 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.753 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 => /127.0.0.1:41973] FLUSH
09:53:45.754 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.754 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 => /127.0.0.1:41973] FLUSH
09:53:45.754 [nioEventLoopGroup-145-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-145-1
09:53:45.754 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 :> /127.0.0.1:41973] INACTIVE
09:53:45.754 [nioEventLoopGroup-132-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d7de94, /127.0.0.1:39768 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.764 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5decf91e, /127.0.0.1:39770 => /127.0.0.1:41973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:41973
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:45.764 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.764 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.764 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:45.765 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.765 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.765 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.765 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.765 [nioEventLoopGroup-132-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:45.766 [nioEventLoopGroup-132-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:45.766 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5decf91e, /127.0.0.1:39770 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.766 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5decf91e, /127.0.0.1:39770 => /127.0.0.1:41973] FLUSH
09:53:45.771 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb0adf09, /127.0.0.1:39772 => /127.0.0.1:41973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:41973
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:45.772 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.773 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.773 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:45.773 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.774 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.774 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.774 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:45.775 [nioEventLoopGroup-132-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:45.775 [nioEventLoopGroup-132-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41973" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:45.775 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb0adf09, /127.0.0.1:39772 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.776 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb0adf09, /127.0.0.1:39772 => /127.0.0.1:41973] FLUSH
09:53:45.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:45.779 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 => /127.0.0.1:41973] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41973
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:45.779 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 => /127.0.0.1:41973] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:45.780 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 => /127.0.0.1:41973] FLUSH
09:53:45.780 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 => /127.0.0.1:41973] CLOSE()
09:53:45.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:45.780 [nioEventLoopGroup-146-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-146-1
09:53:45.783 [nioEventLoopGroup-132-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-12
09:53:45.783 [nioEventLoopGroup-132-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-6
09:53:45.783 [nioEventLoopGroup-132-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-2
09:53:45.783 [nioEventLoopGroup-132-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-9
09:53:45.783 [nioEventLoopGroup-132-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-10
09:53:45.783 [nioEventLoopGroup-132-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-3
09:53:45.783 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb0adf09, /127.0.0.1:39772 :> /127.0.0.1:41973] INACTIVE
09:53:45.783 [nioEventLoopGroup-132-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-13
09:53:45.783 [nioEventLoopGroup-132-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-5
09:53:45.783 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5decf91e, /127.0.0.1:39770 :> /127.0.0.1:41973] INACTIVE
09:53:45.783 [nioEventLoopGroup-132-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-1
09:53:45.783 [nioEventLoopGroup-132-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb0adf09, /127.0.0.1:39772 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.783 [nioEventLoopGroup-132-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5decf91e, /127.0.0.1:39770 :> /127.0.0.1:41973] UNREGISTERED
09:53:45.788 [nioEventLoopGroup-132-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-11
09:53:45.791 [nioEventLoopGroup-132-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-7
09:53:45.791 [nioEventLoopGroup-132-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-4
09:53:45.791 [nioEventLoopGroup-132-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-8
09:53:45.818 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 :> /127.0.0.1:34457] FLUSH
09:53:45.818 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 :> /127.0.0.1:34457] INACTIVE
09:53:45.818 [nioEventLoopGroup-116-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x09327022, /127.0.0.1:59980 :> /127.0.0.1:34457] UNREGISTERED
09:53:45.818 [nioEventLoopGroup-116-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-15
09:53:45.853 [nioEventLoopGroup-100-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-100-14
09:53:46.137 [MockServer thread for port: 34369] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34369
09:53:46.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.143 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.144 [nioEventLoopGroup-148-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:46.145 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.146 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 => /127.0.0.1:34369] FLUSH
09:53:46.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.147 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 => /127.0.0.1:34369] FLUSH
09:53:46.147 [nioEventLoopGroup-149-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-149-1
09:53:46.147 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 :> /127.0.0.1:34369] INACTIVE
09:53:46.147 [nioEventLoopGroup-148-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c3f2791, /127.0.0.1:49462 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.154 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.160 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.161 [nioEventLoopGroup-148-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:46.162 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.162 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 => /127.0.0.1:34369] FLUSH
09:53:46.163 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.163 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 => /127.0.0.1:34369] FLUSH
09:53:46.163 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 :> /127.0.0.1:34369] INACTIVE
09:53:46.163 [nioEventLoopGroup-148-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb7ac809c, /127.0.0.1:49464 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.163 [nioEventLoopGroup-150-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-150-1
09:53:46.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.212 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.214 [nioEventLoopGroup-148-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:46.214 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.214 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 => /127.0.0.1:34369] FLUSH
09:53:46.215 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 => /127.0.0.1:34369] FLUSH
09:53:46.215 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.215 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 :> /127.0.0.1:34369] INACTIVE
09:53:46.215 [nioEventLoopGroup-148-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ccb6cd6, /127.0.0.1:49468 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.215 [nioEventLoopGroup-151-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-151-1
09:53:46.236 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.242 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.243 [nioEventLoopGroup-148-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:46.244 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.244 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 => /127.0.0.1:34369] FLUSH
09:53:46.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.252 [nioEventLoopGroup-152-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-152-1
09:53:46.252 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 => /127.0.0.1:34369] FLUSH
09:53:46.268 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 :> /127.0.0.1:34369] INACTIVE
09:53:46.268 [nioEventLoopGroup-148-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7bea8f8a, /127.0.0.1:49470 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.268 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.272 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.273 [nioEventLoopGroup-148-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:46.274 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.274 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 => /127.0.0.1:34369] FLUSH
09:53:46.275 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.275 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 => /127.0.0.1:34369] FLUSH
09:53:46.275 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 :> /127.0.0.1:34369] INACTIVE
09:53:46.275 [nioEventLoopGroup-148-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x610f017b, /127.0.0.1:49472 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.283 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 :> /127.0.0.1:41973] FLUSH
09:53:46.283 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 :> /127.0.0.1:41973] INACTIVE
09:53:46.283 [nioEventLoopGroup-132-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6d5e67d, /127.0.0.1:39774 :> /127.0.0.1:41973] UNREGISTERED
09:53:46.283 [nioEventLoopGroup-132-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-16
09:53:46.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.290 [nioEventLoopGroup-153-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-153-1
09:53:46.299 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.300 [nioEventLoopGroup-148-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:46.300 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.301 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 => /127.0.0.1:34369] FLUSH
09:53:46.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.302 [nioEventLoopGroup-154-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-154-1
09:53:46.302 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 => /127.0.0.1:34369] FLUSH
09:53:46.302 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 :> /127.0.0.1:34369] INACTIVE
09:53:46.302 [nioEventLoopGroup-148-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d62ebc, /127.0.0.1:49474 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.304 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.310 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.311 [nioEventLoopGroup-148-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:46.312 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.312 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 => /127.0.0.1:34369] FLUSH
09:53:46.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.313 [nioEventLoopGroup-155-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-155-1
09:53:46.313 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 => /127.0.0.1:34369] FLUSH
09:53:46.314 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 :> /127.0.0.1:34369] INACTIVE
09:53:46.314 [nioEventLoopGroup-148-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c7064d5, /127.0.0.1:49476 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.319 [nioEventLoopGroup-116-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-116-14
09:53:46.320 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.330 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.332 [nioEventLoopGroup-148-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:46.334 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.334 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 => /127.0.0.1:34369] FLUSH
09:53:46.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.335 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 => /127.0.0.1:34369] FLUSH
09:53:46.336 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 :> /127.0.0.1:34369] INACTIVE
09:53:46.336 [nioEventLoopGroup-156-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-156-1
09:53:46.339 [nioEventLoopGroup-148-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x557e5f2a, /127.0.0.1:49478 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.364 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.366 [nioEventLoopGroup-148-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:46.368 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.368 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 => /127.0.0.1:34369] FLUSH
09:53:46.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.369 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 => /127.0.0.1:34369] FLUSH
09:53:46.370 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 :> /127.0.0.1:34369] INACTIVE
09:53:46.370 [nioEventLoopGroup-157-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-157-1
09:53:46.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.372 [nioEventLoopGroup-148-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36d82303, /127.0.0.1:49480 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.377 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.378 [nioEventLoopGroup-148-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:46.378 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.378 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 => /127.0.0.1:34369] FLUSH
09:53:46.379 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.379 [nioEventLoopGroup-158-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-158-1
09:53:46.379 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 => /127.0.0.1:34369] FLUSH
09:53:46.380 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 :> /127.0.0.1:34369] INACTIVE
09:53:46.380 [nioEventLoopGroup-148-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x080151a8, /127.0.0.1:49482 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.390 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.391 [nioEventLoopGroup-148-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:46.391 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.391 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 => /127.0.0.1:34369] FLUSH
09:53:46.391 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.391 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 => /127.0.0.1:34369] FLUSH
09:53:46.392 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 :> /127.0.0.1:34369] INACTIVE
09:53:46.392 [nioEventLoopGroup-148-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35400e64, /127.0.0.1:49484 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.392 [nioEventLoopGroup-159-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-159-1
09:53:46.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.396 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.397 [nioEventLoopGroup-148-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:46.398 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.398 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 => /127.0.0.1:34369] FLUSH
09:53:46.402 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.402 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 => /127.0.0.1:34369] FLUSH
09:53:46.402 [nioEventLoopGroup-160-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-160-1
09:53:46.402 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 :> /127.0.0.1:34369] INACTIVE
09:53:46.402 [nioEventLoopGroup-148-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8097f7a, /127.0.0.1:49486 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.411 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.415 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 => /127.0.0.1:34369] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.416 [nioEventLoopGroup-148-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:46.417 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.417 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 => /127.0.0.1:34369] FLUSH
09:53:46.418 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.418 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 => /127.0.0.1:34369] FLUSH
09:53:46.418 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 :> /127.0.0.1:34369] INACTIVE
09:53:46.418 [nioEventLoopGroup-148-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2d781c49, /127.0.0.1:49488 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.418 [nioEventLoopGroup-161-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-161-1
09:53:46.435 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78ab382d, /127.0.0.1:49490 => /127.0.0.1:34369] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:34369
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:46.436 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.436 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.436 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:46.437 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.437 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.437 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.437 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.438 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.438 [nioEventLoopGroup-148-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:46.438 [nioEventLoopGroup-148-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:46.438 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78ab382d, /127.0.0.1:49490 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:46.439 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78ab382d, /127.0.0.1:49490 => /127.0.0.1:34369] FLUSH
09:53:46.443 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f0fd8eb, /127.0.0.1:49492 => /127.0.0.1:34369] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:34369
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:46.444 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.444 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.444 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:46.445 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.445 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.445 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.446 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.446 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:46.446 [nioEventLoopGroup-148-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:46.447 [nioEventLoopGroup-148-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34369" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:46.447 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f0fd8eb, /127.0.0.1:49492 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:46.447 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f0fd8eb, /127.0.0.1:49492 => /127.0.0.1:34369] FLUSH
09:53:46.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:46.451 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 => /127.0.0.1:34369] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34369
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:46.452 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 => /127.0.0.1:34369] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.452 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 => /127.0.0.1:34369] FLUSH
09:53:46.452 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 => /127.0.0.1:34369] CLOSE()
09:53:46.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.453 [nioEventLoopGroup-162-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-162-1
09:53:46.455 [nioEventLoopGroup-148-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-7
09:53:46.455 [nioEventLoopGroup-148-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-1
09:53:46.455 [nioEventLoopGroup-148-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-5
09:53:46.455 [nioEventLoopGroup-148-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-8
09:53:46.455 [nioEventLoopGroup-148-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-2
09:53:46.455 [nioEventLoopGroup-148-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-6
09:53:46.455 [nioEventLoopGroup-148-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-10
09:53:46.455 [nioEventLoopGroup-148-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-3
09:53:46.455 [nioEventLoopGroup-148-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-12
09:53:46.455 [nioEventLoopGroup-148-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-11
09:53:46.455 [nioEventLoopGroup-148-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-13
09:53:46.455 [nioEventLoopGroup-148-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-4
09:53:46.455 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78ab382d, /127.0.0.1:49490 :> /127.0.0.1:34369] INACTIVE
09:53:46.455 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f0fd8eb, /127.0.0.1:49492 :> /127.0.0.1:34369] INACTIVE
09:53:46.455 [nioEventLoopGroup-148-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-9
09:53:46.456 [nioEventLoopGroup-148-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x78ab382d, /127.0.0.1:49490 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.456 [nioEventLoopGroup-148-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9f0fd8eb, /127.0.0.1:49492 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.784 [nioEventLoopGroup-132-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-15
09:53:46.784 [nioEventLoopGroup-132-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-132-14
09:53:46.811 [MockServer thread for port: 44799] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44799
09:53:46.811 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.818 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.820 [nioEventLoopGroup-164-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:46.820 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.820 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 => /127.0.0.1:44799] FLUSH
09:53:46.822 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 => /127.0.0.1:44799] FLUSH
09:53:46.822 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 :> /127.0.0.1:44799] INACTIVE
09:53:46.822 [nioEventLoopGroup-164-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f98705d, /127.0.0.1:57372 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.825 [nioEventLoopGroup-165-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-165-1
09:53:46.834 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.838 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.844 [nioEventLoopGroup-164-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:46.845 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.846 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 => /127.0.0.1:44799] FLUSH
09:53:46.847 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 => /127.0.0.1:44799] FLUSH
09:53:46.847 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.848 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 :> /127.0.0.1:44799] INACTIVE
09:53:46.851 [nioEventLoopGroup-166-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-166-1
09:53:46.855 [nioEventLoopGroup-164-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8f4973e, /127.0.0.1:57374 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.862 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.864 [nioEventLoopGroup-164-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:46.865 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.866 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 => /127.0.0.1:44799] FLUSH
09:53:46.866 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.867 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 => /127.0.0.1:44799] FLUSH
09:53:46.867 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 :> /127.0.0.1:44799] INACTIVE
09:53:46.867 [nioEventLoopGroup-164-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ab18366, /127.0.0.1:57376 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.867 [nioEventLoopGroup-167-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-167-1
09:53:46.883 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.887 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.888 [nioEventLoopGroup-164-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:46.889 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.889 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 => /127.0.0.1:44799] FLUSH
09:53:46.889 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.890 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 => /127.0.0.1:44799] FLUSH
09:53:46.890 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 :> /127.0.0.1:44799] INACTIVE
09:53:46.890 [nioEventLoopGroup-164-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ede29b, /127.0.0.1:57378 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.890 [nioEventLoopGroup-168-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-168-1
09:53:46.891 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.898 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.899 [nioEventLoopGroup-164-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:46.900 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.900 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 => /127.0.0.1:44799] FLUSH
09:53:46.900 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.901 [nioEventLoopGroup-169-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-169-1
09:53:46.901 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 => /127.0.0.1:44799] FLUSH
09:53:46.901 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 :> /127.0.0.1:44799] INACTIVE
09:53:46.901 [nioEventLoopGroup-164-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ee9eb55, /127.0.0.1:57380 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.919 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.924 [nioEventLoopGroup-164-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:46.925 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.925 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 => /127.0.0.1:44799] FLUSH
09:53:46.927 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 => /127.0.0.1:44799] FLUSH
09:53:46.928 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 :> /127.0.0.1:44799] INACTIVE
09:53:46.928 [nioEventLoopGroup-164-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9593e86, /127.0.0.1:57382 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.940 [nioEventLoopGroup-170-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-170-1
09:53:46.947 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.955 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 :> /127.0.0.1:34369] FLUSH
09:53:46.955 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 :> /127.0.0.1:34369] INACTIVE
09:53:46.955 [nioEventLoopGroup-148-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc82cb8a4, /127.0.0.1:49494 :> /127.0.0.1:34369] UNREGISTERED
09:53:46.955 [nioEventLoopGroup-148-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-16
09:53:46.961 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.963 [nioEventLoopGroup-164-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:46.963 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.963 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 => /127.0.0.1:44799] FLUSH
09:53:46.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:46.964 [nioEventLoopGroup-171-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-171-1
09:53:46.965 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 => /127.0.0.1:44799] FLUSH
09:53:46.966 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 :> /127.0.0.1:44799] INACTIVE
09:53:46.966 [nioEventLoopGroup-164-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x28f69cd7, /127.0.0.1:57384 :> /127.0.0.1:44799] UNREGISTERED
09:53:46.972 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:46.992 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:46.995 [nioEventLoopGroup-164-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:46.998 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:46.998 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 => /127.0.0.1:44799] FLUSH
09:53:47.000 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.000 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 => /127.0.0.1:44799] FLUSH
09:53:47.001 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 :> /127.0.0.1:44799] INACTIVE
09:53:47.001 [nioEventLoopGroup-164-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x41394242, /127.0.0.1:57386 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.006 [nioEventLoopGroup-172-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-172-1
09:53:47.017 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.024 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.031 [nioEventLoopGroup-164-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:47.033 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.034 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 => /127.0.0.1:44799] FLUSH
09:53:47.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.035 [nioEventLoopGroup-173-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-173-1
09:53:47.035 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 => /127.0.0.1:44799] FLUSH
09:53:47.036 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 :> /127.0.0.1:44799] INACTIVE
09:53:47.036 [nioEventLoopGroup-164-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8b37c66d, /127.0.0.1:57388 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.041 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.049 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.051 [nioEventLoopGroup-164-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:47.051 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.052 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 => /127.0.0.1:44799] FLUSH
09:53:47.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.053 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 => /127.0.0.1:44799] FLUSH
09:53:47.053 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 :> /127.0.0.1:44799] INACTIVE
09:53:47.053 [nioEventLoopGroup-164-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07457d39, /127.0.0.1:57390 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.053 [nioEventLoopGroup-174-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-174-1
09:53:47.140 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.144 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.145 [nioEventLoopGroup-164-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:47.145 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.145 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 => /127.0.0.1:44799] FLUSH
09:53:47.145 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.145 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 => /127.0.0.1:44799] FLUSH
09:53:47.146 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 :> /127.0.0.1:44799] INACTIVE
09:53:47.146 [nioEventLoopGroup-164-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x05f0d25d, /127.0.0.1:57392 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.146 [nioEventLoopGroup-175-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-175-1
09:53:47.147 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.151 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.153 [nioEventLoopGroup-164-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:47.154 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.154 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 => /127.0.0.1:44799] FLUSH
09:53:47.159 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.160 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 => /127.0.0.1:44799] FLUSH
09:53:47.160 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 :> /127.0.0.1:44799] INACTIVE
09:53:47.160 [nioEventLoopGroup-164-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6776cc0b, /127.0.0.1:57394 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.161 [nioEventLoopGroup-176-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-176-1
09:53:47.172 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.176 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 => /127.0.0.1:44799] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.177 [nioEventLoopGroup-164-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:47.178 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.178 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 => /127.0.0.1:44799] FLUSH
09:53:47.178 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 => /127.0.0.1:44799] FLUSH
09:53:47.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.179 [nioEventLoopGroup-177-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-177-1
09:53:47.179 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 :> /127.0.0.1:44799] INACTIVE
09:53:47.179 [nioEventLoopGroup-164-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3daa13e9, /127.0.0.1:57396 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.200 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x765b6ae8, /127.0.0.1:57398 => /127.0.0.1:44799] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:44799
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:47.201 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.202 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.202 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:47.202 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.203 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.203 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.224 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.224 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.225 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.226 [nioEventLoopGroup-164-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:47.227 [nioEventLoopGroup-164-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:47.227 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x765b6ae8, /127.0.0.1:57398 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:47.227 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x765b6ae8, /127.0.0.1:57398 => /127.0.0.1:44799] FLUSH
09:53:47.256 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87e393c3, /127.0.0.1:57400 => /127.0.0.1:44799] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:44799
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:47.257 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.257 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.258 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:47.258 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.258 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.259 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.259 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.259 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.259 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:47.260 [nioEventLoopGroup-164-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:47.260 [nioEventLoopGroup-164-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44799" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:47.260 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87e393c3, /127.0.0.1:57400 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:47.261 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87e393c3, /127.0.0.1:57400 => /127.0.0.1:44799] FLUSH
09:53:47.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:47.283 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 => /127.0.0.1:44799] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44799
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:47.283 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 => /127.0.0.1:44799] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.284 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 => /127.0.0.1:44799] FLUSH
09:53:47.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.285 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 => /127.0.0.1:44799] CLOSE()
09:53:47.289 [nioEventLoopGroup-178-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-178-1
09:53:47.291 [nioEventLoopGroup-164-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-11
09:53:47.291 [nioEventLoopGroup-164-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-2
09:53:47.291 [nioEventLoopGroup-164-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-4
09:53:47.291 [nioEventLoopGroup-164-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-1
09:53:47.291 [nioEventLoopGroup-164-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-3
09:53:47.291 [nioEventLoopGroup-164-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-5
09:53:47.292 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x765b6ae8, /127.0.0.1:57398 :> /127.0.0.1:44799] INACTIVE
09:53:47.292 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87e393c3, /127.0.0.1:57400 :> /127.0.0.1:44799] INACTIVE
09:53:47.292 [nioEventLoopGroup-164-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-10
09:53:47.292 [nioEventLoopGroup-164-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-9
09:53:47.292 [nioEventLoopGroup-164-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-7
09:53:47.292 [nioEventLoopGroup-164-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-8
09:53:47.291 [nioEventLoopGroup-164-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-12
09:53:47.292 [nioEventLoopGroup-164-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-6
09:53:47.292 [nioEventLoopGroup-164-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-13
09:53:47.292 [nioEventLoopGroup-164-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x765b6ae8, /127.0.0.1:57398 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.292 [nioEventLoopGroup-164-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87e393c3, /127.0.0.1:57400 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.457 [nioEventLoopGroup-148-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-14
09:53:47.457 [nioEventLoopGroup-148-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-148-15
09:53:47.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.663 [MockServer thread for port: 43817] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43817
09:53:47.700 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.704 [nioEventLoopGroup-180-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:47.706 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.707 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 => /127.0.0.1:43817] FLUSH
09:53:47.713 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.713 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 => /127.0.0.1:43817] FLUSH
09:53:47.713 [nioEventLoopGroup-181-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-181-1
09:53:47.713 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 :> /127.0.0.1:43817] INACTIVE
09:53:47.713 [nioEventLoopGroup-180-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f7b0336, /127.0.0.1:49438 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.740 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.748 [nioEventLoopGroup-180-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:47.749 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.749 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 => /127.0.0.1:43817] FLUSH
09:53:47.749 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 => /127.0.0.1:43817] FLUSH
09:53:47.750 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 :> /127.0.0.1:43817] INACTIVE
09:53:47.750 [nioEventLoopGroup-180-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ad14342, /127.0.0.1:49440 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.750 [nioEventLoopGroup-182-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-182-1
09:53:47.763 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.771 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.775 [nioEventLoopGroup-180-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:47.777 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.778 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 => /127.0.0.1:43817] FLUSH
09:53:47.779 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.779 [nioEventLoopGroup-183-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-183-1
09:53:47.780 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 => /127.0.0.1:43817] FLUSH
09:53:47.780 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 :> /127.0.0.1:43817] INACTIVE
09:53:47.780 [nioEventLoopGroup-180-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x614c633f, /127.0.0.1:49442 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.791 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 :> /127.0.0.1:44799] FLUSH
09:53:47.791 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 :> /127.0.0.1:44799] INACTIVE
09:53:47.791 [nioEventLoopGroup-164-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcde95922, /127.0.0.1:57402 :> /127.0.0.1:44799] UNREGISTERED
09:53:47.792 [nioEventLoopGroup-164-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-16
09:53:47.793 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.811 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.812 [nioEventLoopGroup-180-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:47.812 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.812 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 => /127.0.0.1:43817] FLUSH
09:53:47.813 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.813 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 => /127.0.0.1:43817] FLUSH
09:53:47.813 [nioEventLoopGroup-184-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-184-1
09:53:47.813 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 :> /127.0.0.1:43817] INACTIVE
09:53:47.813 [nioEventLoopGroup-180-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x414f3a86, /127.0.0.1:49444 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.827 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.828 [nioEventLoopGroup-180-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:47.828 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.829 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 => /127.0.0.1:43817] FLUSH
09:53:47.829 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 => /127.0.0.1:43817] FLUSH
09:53:47.829 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.829 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 :> /127.0.0.1:43817] INACTIVE
09:53:47.829 [nioEventLoopGroup-180-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb6864140, /127.0.0.1:49446 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.829 [nioEventLoopGroup-185-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-185-1
09:53:47.831 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.838 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.839 [nioEventLoopGroup-180-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:47.840 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.840 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 => /127.0.0.1:43817] FLUSH
09:53:47.840 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 => /127.0.0.1:43817] FLUSH
09:53:47.840 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.840 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 :> /127.0.0.1:43817] INACTIVE
09:53:47.840 [nioEventLoopGroup-180-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb200807f, /127.0.0.1:49448 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.840 [nioEventLoopGroup-186-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-186-1
09:53:47.844 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.848 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.849 [nioEventLoopGroup-180-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:47.853 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.853 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 => /127.0.0.1:43817] FLUSH
09:53:47.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.854 [nioEventLoopGroup-187-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-187-1
09:53:47.854 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 => /127.0.0.1:43817] FLUSH
09:53:47.854 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 :> /127.0.0.1:43817] INACTIVE
09:53:47.854 [nioEventLoopGroup-180-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06d7270d, /127.0.0.1:49450 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.867 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.873 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.874 [nioEventLoopGroup-180-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:47.875 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.875 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 => /127.0.0.1:43817] FLUSH
09:53:47.875 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 => /127.0.0.1:43817] FLUSH
09:53:47.875 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.876 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 :> /127.0.0.1:43817] INACTIVE
09:53:47.876 [nioEventLoopGroup-180-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ca56b25, /127.0.0.1:49452 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.876 [nioEventLoopGroup-188-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-188-1
09:53:47.888 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.894 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.895 [nioEventLoopGroup-180-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:47.895 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.895 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 => /127.0.0.1:43817] FLUSH
09:53:47.896 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.896 [nioEventLoopGroup-189-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-189-1
09:53:47.899 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 => /127.0.0.1:43817] FLUSH
09:53:47.899 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 :> /127.0.0.1:43817] INACTIVE
09:53:47.899 [nioEventLoopGroup-180-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87518eb0, /127.0.0.1:49454 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.899 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.903 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.903 [nioEventLoopGroup-180-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:47.904 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.905 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 => /127.0.0.1:43817] FLUSH
09:53:47.905 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.906 [nioEventLoopGroup-190-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-190-1
09:53:47.906 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 => /127.0.0.1:43817] FLUSH
09:53:47.907 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 :> /127.0.0.1:43817] INACTIVE
09:53:47.907 [nioEventLoopGroup-180-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1b55eac7, /127.0.0.1:49456 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.955 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.960 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.961 [nioEventLoopGroup-180-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:47.962 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.962 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 => /127.0.0.1:43817] FLUSH
09:53:47.962 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.963 [nioEventLoopGroup-191-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-191-1
09:53:47.963 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 => /127.0.0.1:43817] FLUSH
09:53:47.964 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 :> /127.0.0.1:43817] INACTIVE
09:53:47.964 [nioEventLoopGroup-180-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0b5a87c, /127.0.0.1:49458 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.965 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.970 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.974 [nioEventLoopGroup-180-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:47.977 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.978 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 => /127.0.0.1:43817] FLUSH
09:53:47.979 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.979 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 => /127.0.0.1:43817] FLUSH
09:53:47.979 [nioEventLoopGroup-192-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-192-1
09:53:47.990 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 :> /127.0.0.1:43817] INACTIVE
09:53:47.990 [nioEventLoopGroup-180-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x60009041, /127.0.0.1:49460 :> /127.0.0.1:43817] UNREGISTERED
09:53:47.991 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:47.995 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 => /127.0.0.1:43817] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:47.996 [nioEventLoopGroup-180-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:47.997 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:47.997 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 => /127.0.0.1:43817] FLUSH
09:53:47.998 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:47.998 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 => /127.0.0.1:43817] FLUSH
09:53:48.003 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 :> /127.0.0.1:43817] INACTIVE
09:53:48.003 [nioEventLoopGroup-180-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6248ee62, /127.0.0.1:49462 :> /127.0.0.1:43817] UNREGISTERED
09:53:48.008 [nioEventLoopGroup-193-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-193-1
09:53:48.011 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a17426d, /127.0.0.1:49464 => /127.0.0.1:43817] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:43817
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:48.012 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.014 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.016 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:48.017 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.018 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.019 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.019 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.019 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.020 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.020 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.020 [nioEventLoopGroup-180-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:48.021 [nioEventLoopGroup-180-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:48.021 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a17426d, /127.0.0.1:49464 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.021 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a17426d, /127.0.0.1:49464 => /127.0.0.1:43817] FLUSH
09:53:48.031 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0431882, /127.0.0.1:49466 => /127.0.0.1:43817] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:43817
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:48.032 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.032 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.033 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:48.033 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.034 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.034 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.035 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.035 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.036 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.036 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.037 [nioEventLoopGroup-180-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:48.037 [nioEventLoopGroup-180-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43817" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:48.038 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0431882, /127.0.0.1:49466 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.038 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0431882, /127.0.0.1:49466 => /127.0.0.1:43817] FLUSH
09:53:48.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:48.042 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 => /127.0.0.1:43817] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43817
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.042 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 => /127.0.0.1:43817] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.043 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 => /127.0.0.1:43817] FLUSH
09:53:48.043 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 => /127.0.0.1:43817] CLOSE()
09:53:48.043 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.044 [nioEventLoopGroup-194-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-194-1
09:53:48.047 [nioEventLoopGroup-180-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-3
09:53:48.047 [nioEventLoopGroup-180-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-6
09:53:48.047 [nioEventLoopGroup-180-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-2
09:53:48.047 [nioEventLoopGroup-180-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-1
09:53:48.047 [nioEventLoopGroup-180-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-13
09:53:48.047 [nioEventLoopGroup-180-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-9
09:53:48.047 [nioEventLoopGroup-180-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-11
09:53:48.047 [nioEventLoopGroup-180-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-5
09:53:48.047 [nioEventLoopGroup-180-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-7
09:53:48.047 [nioEventLoopGroup-180-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-4
09:53:48.047 [nioEventLoopGroup-180-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-12
09:53:48.047 [nioEventLoopGroup-180-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-8
09:53:48.047 [nioEventLoopGroup-180-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-10
09:53:48.047 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a17426d, /127.0.0.1:49464 :> /127.0.0.1:43817] INACTIVE
09:53:48.047 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0431882, /127.0.0.1:49466 :> /127.0.0.1:43817] INACTIVE
09:53:48.048 [nioEventLoopGroup-180-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a17426d, /127.0.0.1:49464 :> /127.0.0.1:43817] UNREGISTERED
09:53:48.048 [nioEventLoopGroup-180-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0431882, /127.0.0.1:49466 :> /127.0.0.1:43817] UNREGISTERED
09:53:48.294 [nioEventLoopGroup-164-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-14
09:53:48.294 [nioEventLoopGroup-164-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-164-15
09:53:48.399 [MockServer thread for port: 39100] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 39100
09:53:48.399 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.402 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.403 [nioEventLoopGroup-196-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:48.404 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.404 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 => /127.0.0.1:39100] FLUSH
09:53:48.404 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 => /127.0.0.1:39100] FLUSH
09:53:48.404 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.404 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 :> /127.0.0.1:39100] INACTIVE
09:53:48.404 [nioEventLoopGroup-196-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbc5c8b8c, /127.0.0.1:51636 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.405 [nioEventLoopGroup-197-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-197-1
09:53:48.408 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.412 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.413 [nioEventLoopGroup-196-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:48.413 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.413 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 => /127.0.0.1:39100] FLUSH
09:53:48.414 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.414 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 => /127.0.0.1:39100] FLUSH
09:53:48.414 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 :> /127.0.0.1:39100] INACTIVE
09:53:48.414 [nioEventLoopGroup-196-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbdd2ebbe, /127.0.0.1:51638 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.414 [nioEventLoopGroup-198-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-198-1
09:53:48.416 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.419 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.420 [nioEventLoopGroup-196-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:48.420 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.420 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 => /127.0.0.1:39100] FLUSH
09:53:48.420 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.421 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 => /127.0.0.1:39100] FLUSH
09:53:48.421 [nioEventLoopGroup-199-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-199-1
09:53:48.421 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 :> /127.0.0.1:39100] INACTIVE
09:53:48.421 [nioEventLoopGroup-196-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0deb88b, /127.0.0.1:51640 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.422 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.424 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.425 [nioEventLoopGroup-196-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:48.425 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.425 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 => /127.0.0.1:39100] FLUSH
09:53:48.426 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.426 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 => /127.0.0.1:39100] FLUSH
09:53:48.426 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 :> /127.0.0.1:39100] INACTIVE
09:53:48.426 [nioEventLoopGroup-196-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8d5bb8d, /127.0.0.1:51642 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.426 [nioEventLoopGroup-200-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-200-1
09:53:48.429 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.433 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.435 [nioEventLoopGroup-196-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:48.435 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.435 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 => /127.0.0.1:39100] FLUSH
09:53:48.436 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.436 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 => /127.0.0.1:39100] FLUSH
09:53:48.436 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 :> /127.0.0.1:39100] INACTIVE
09:53:48.436 [nioEventLoopGroup-201-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-201-1
09:53:48.436 [nioEventLoopGroup-196-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba6bd316, /127.0.0.1:51644 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.437 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.440 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.441 [nioEventLoopGroup-196-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:48.441 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.442 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 => /127.0.0.1:39100] FLUSH
09:53:48.442 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.442 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 => /127.0.0.1:39100] FLUSH
09:53:48.442 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 :> /127.0.0.1:39100] INACTIVE
09:53:48.442 [nioEventLoopGroup-196-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc34e2919, /127.0.0.1:51646 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.442 [nioEventLoopGroup-202-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-202-1
09:53:48.448 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.451 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.452 [nioEventLoopGroup-196-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:48.452 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.452 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 => /127.0.0.1:39100] FLUSH
09:53:48.453 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.453 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 => /127.0.0.1:39100] FLUSH
09:53:48.453 [nioEventLoopGroup-203-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-203-1
09:53:48.453 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 :> /127.0.0.1:39100] INACTIVE
09:53:48.453 [nioEventLoopGroup-196-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7dd80b5, /127.0.0.1:51648 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.456 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.459 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.460 [nioEventLoopGroup-196-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:48.460 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.460 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 => /127.0.0.1:39100] FLUSH
09:53:48.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.461 [nioEventLoopGroup-204-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-204-1
09:53:48.461 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 => /127.0.0.1:39100] FLUSH
09:53:48.462 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 :> /127.0.0.1:39100] INACTIVE
09:53:48.462 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.464 [nioEventLoopGroup-196-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126be613, /127.0.0.1:51650 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.465 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.466 [nioEventLoopGroup-196-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:48.466 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.466 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 => /127.0.0.1:39100] FLUSH
09:53:48.467 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.467 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 => /127.0.0.1:39100] FLUSH
09:53:48.467 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 :> /127.0.0.1:39100] INACTIVE
09:53:48.467 [nioEventLoopGroup-196-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe140b36, /127.0.0.1:51652 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.468 [nioEventLoopGroup-205-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-205-1
09:53:48.470 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.474 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.475 [nioEventLoopGroup-196-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:48.476 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.476 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 => /127.0.0.1:39100] FLUSH
09:53:48.477 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 => /127.0.0.1:39100] FLUSH
09:53:48.476 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.477 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 :> /127.0.0.1:39100] INACTIVE
09:53:48.477 [nioEventLoopGroup-196-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a3acde6, /127.0.0.1:51654 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.477 [nioEventLoopGroup-206-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-206-1
09:53:48.478 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.482 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.483 [nioEventLoopGroup-196-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:48.484 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.484 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 => /127.0.0.1:39100] FLUSH
09:53:48.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.484 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 => /127.0.0.1:39100] FLUSH
09:53:48.485 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 :> /127.0.0.1:39100] INACTIVE
09:53:48.485 [nioEventLoopGroup-207-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-207-1
09:53:48.485 [nioEventLoopGroup-196-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a5615e5, /127.0.0.1:51656 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.486 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.488 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.489 [nioEventLoopGroup-196-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:48.489 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.489 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 => /127.0.0.1:39100] FLUSH
09:53:48.490 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.490 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 => /127.0.0.1:39100] FLUSH
09:53:48.490 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 :> /127.0.0.1:39100] INACTIVE
09:53:48.490 [nioEventLoopGroup-196-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7784009, /127.0.0.1:51660 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.490 [nioEventLoopGroup-208-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-208-1
09:53:48.496 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.500 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 => /127.0.0.1:39100] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.501 [nioEventLoopGroup-196-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:48.501 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.501 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 => /127.0.0.1:39100] FLUSH
09:53:48.502 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.502 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 => /127.0.0.1:39100] FLUSH
09:53:48.502 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 :> /127.0.0.1:39100] INACTIVE
09:53:48.502 [nioEventLoopGroup-196-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xafd9f1f9, /127.0.0.1:51662 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.502 [nioEventLoopGroup-209-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-209-1
09:53:48.508 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39100
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:48.509 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.510 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.510 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:48.510 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.511 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.511 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.511 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.511 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:48.512 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:48.512 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.512 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] FLUSH
09:53:48.514 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:39100
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:48.515 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.515 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.516 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:48.516 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.516 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.516 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.516 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:48.517 [nioEventLoopGroup-196-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:48.517 [nioEventLoopGroup-196-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:39100" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:48.517 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.517 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 => /127.0.0.1:39100] FLUSH
09:53:48.518 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:48.521 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 => /127.0.0.1:39100] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:39100
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:48.521 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 => /127.0.0.1:39100] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.522 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 => /127.0.0.1:39100] FLUSH
09:53:48.522 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 => /127.0.0.1:39100] CLOSE()
09:53:48.522 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.522 [nioEventLoopGroup-210-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-210-1
09:53:48.525 [nioEventLoopGroup-196-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-6
09:53:48.525 [nioEventLoopGroup-196-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-5
09:53:48.525 [nioEventLoopGroup-196-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-3
09:53:48.525 [nioEventLoopGroup-196-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-1
09:53:48.525 [nioEventLoopGroup-196-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-4
09:53:48.525 [nioEventLoopGroup-196-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-2
09:53:48.525 [nioEventLoopGroup-196-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-8
09:53:48.525 [nioEventLoopGroup-196-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-9
09:53:48.525 [nioEventLoopGroup-196-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-7
09:53:48.525 [nioEventLoopGroup-196-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-12
09:53:48.525 [nioEventLoopGroup-196-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-10
09:53:48.525 [nioEventLoopGroup-196-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-11
09:53:48.525 [nioEventLoopGroup-196-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-13
09:53:48.525 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 :> /127.0.0.1:39100] INACTIVE
09:53:48.526 [nioEventLoopGroup-196-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5b34b94, /127.0.0.1:51664 :> /127.0.0.1:39100] UNREGISTERED
09:53:48.547 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 :> /127.0.0.1:43817] FLUSH
09:53:48.548 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 :> /127.0.0.1:43817] INACTIVE
09:53:48.548 [nioEventLoopGroup-180-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xda4d56d9, /127.0.0.1:49468 :> /127.0.0.1:43817] UNREGISTERED
09:53:48.548 [nioEventLoopGroup-180-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-16
09:53:48.877 [MockServer thread for port: 33582] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33582
09:53:48.877 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.880 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.881 [nioEventLoopGroup-212-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:48.881 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.881 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 => /127.0.0.1:33582] FLUSH
09:53:48.882 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 => /127.0.0.1:33582] FLUSH
09:53:48.882 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.882 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 :> /127.0.0.1:33582] INACTIVE
09:53:48.882 [nioEventLoopGroup-212-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4d4119a, /127.0.0.1:38720 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.882 [nioEventLoopGroup-213-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-213-1
09:53:48.887 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.896 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.899 [nioEventLoopGroup-212-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:48.901 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.901 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 => /127.0.0.1:33582] FLUSH
09:53:48.902 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 => /127.0.0.1:33582] FLUSH
09:53:48.902 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.902 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 :> /127.0.0.1:33582] INACTIVE
09:53:48.902 [nioEventLoopGroup-212-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x126e79f1, /127.0.0.1:38722 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.902 [nioEventLoopGroup-214-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-214-1
09:53:48.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.909 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.911 [nioEventLoopGroup-212-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:48.911 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.911 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 => /127.0.0.1:33582] FLUSH
09:53:48.912 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.912 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 => /127.0.0.1:33582] FLUSH
09:53:48.912 [nioEventLoopGroup-215-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-215-1
09:53:48.912 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 :> /127.0.0.1:33582] INACTIVE
09:53:48.912 [nioEventLoopGroup-212-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0732bd59, /127.0.0.1:38724 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.915 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.918 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.919 [nioEventLoopGroup-212-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:48.920 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.920 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 => /127.0.0.1:33582] FLUSH
09:53:48.920 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 => /127.0.0.1:33582] FLUSH
09:53:48.920 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 :> /127.0.0.1:33582] INACTIVE
09:53:48.920 [nioEventLoopGroup-212-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64a9fc5a, /127.0.0.1:38726 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.920 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.922 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.924 [nioEventLoopGroup-216-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-216-1
09:53:48.926 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.929 [nioEventLoopGroup-212-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:48.930 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.930 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 => /127.0.0.1:33582] FLUSH
09:53:48.930 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.930 [nioEventLoopGroup-217-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-217-1
09:53:48.931 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 => /127.0.0.1:33582] FLUSH
09:53:48.932 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 :> /127.0.0.1:33582] INACTIVE
09:53:48.932 [nioEventLoopGroup-212-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39f1e0d, /127.0.0.1:38728 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.939 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.941 [nioEventLoopGroup-212-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:48.941 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.941 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 => /127.0.0.1:33582] FLUSH
09:53:48.941 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.942 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 => /127.0.0.1:33582] FLUSH
09:53:48.942 [nioEventLoopGroup-218-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-218-1
09:53:48.942 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 :> /127.0.0.1:33582] INACTIVE
09:53:48.942 [nioEventLoopGroup-212-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d648549, /127.0.0.1:38730 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.950 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.951 [nioEventLoopGroup-212-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:48.951 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.952 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 => /127.0.0.1:33582] FLUSH
09:53:48.952 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.952 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 => /127.0.0.1:33582] FLUSH
09:53:48.952 [nioEventLoopGroup-219-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-219-1
09:53:48.952 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 :> /127.0.0.1:33582] INACTIVE
09:53:48.952 [nioEventLoopGroup-212-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x482b61e2, /127.0.0.1:38732 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.971 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.976 [nioEventLoopGroup-212-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:48.976 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.977 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 => /127.0.0.1:33582] FLUSH
09:53:48.977 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.978 [nioEventLoopGroup-220-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-220-1
09:53:48.978 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 => /127.0.0.1:33582] FLUSH
09:53:48.978 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 :> /127.0.0.1:33582] INACTIVE
09:53:48.978 [nioEventLoopGroup-212-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b8c31e5, /127.0.0.1:38734 :> /127.0.0.1:33582] UNREGISTERED
09:53:48.987 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:48.994 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:48.996 [nioEventLoopGroup-212-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:48.997 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:48.997 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 => /127.0.0.1:33582] FLUSH
09:53:48.997 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:48.998 [nioEventLoopGroup-221-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-221-1
09:53:48.998 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 => /127.0.0.1:33582] FLUSH
09:53:48.999 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 :> /127.0.0.1:33582] INACTIVE
09:53:49.000 [nioEventLoopGroup-212-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5fc7a3d, /127.0.0.1:38736 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.007 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.014 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.016 [nioEventLoopGroup-212-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:49.017 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.017 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 => /127.0.0.1:33582] FLUSH
09:53:49.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.019 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 => /127.0.0.1:33582] FLUSH
09:53:49.019 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 :> /127.0.0.1:33582] INACTIVE
09:53:49.019 [nioEventLoopGroup-212-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb998321, /127.0.0.1:38738 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.019 [nioEventLoopGroup-222-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-222-1
09:53:49.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.026 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 :> /127.0.0.1:39100] FLUSH
09:53:49.026 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 :> /127.0.0.1:39100] INACTIVE
09:53:49.026 [nioEventLoopGroup-196-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe42b4650, /127.0.0.1:51666 :> /127.0.0.1:39100] UNREGISTERED
09:53:49.026 [nioEventLoopGroup-196-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-15
09:53:49.029 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.030 [nioEventLoopGroup-212-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:49.031 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.031 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 => /127.0.0.1:33582] FLUSH
09:53:49.032 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.032 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 => /127.0.0.1:33582] FLUSH
09:53:49.033 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 :> /127.0.0.1:33582] INACTIVE
09:53:49.033 [nioEventLoopGroup-212-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x31d84c34, /127.0.0.1:38740 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.033 [nioEventLoopGroup-223-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-223-1
09:53:49.049 [nioEventLoopGroup-180-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-14
09:53:49.049 [nioEventLoopGroup-180-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-180-15
09:53:49.067 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.075 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.077 [nioEventLoopGroup-212-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:49.077 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.077 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 => /127.0.0.1:33582] FLUSH
09:53:49.078 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.078 [nioEventLoopGroup-224-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-224-1
09:53:49.078 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 => /127.0.0.1:33582] FLUSH
09:53:49.079 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 :> /127.0.0.1:33582] INACTIVE
09:53:49.079 [nioEventLoopGroup-212-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b45c550, /127.0.0.1:38742 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.094 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.098 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 => /127.0.0.1:33582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.101 [nioEventLoopGroup-212-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:49.101 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.101 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 => /127.0.0.1:33582] FLUSH
09:53:49.102 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.102 [nioEventLoopGroup-225-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-225-1
09:53:49.102 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 => /127.0.0.1:33582] FLUSH
09:53:49.103 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 :> /127.0.0.1:33582] INACTIVE
09:53:49.103 [nioEventLoopGroup-212-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1181f440, /127.0.0.1:38744 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.107 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33582
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:49.107 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.109 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.109 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:49.110 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.110 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.110 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.111 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.111 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.111 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:49.112 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:49.112 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.112 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] FLUSH
09:53:49.123 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:33582
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:49.124 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.124 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.126 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:49.126 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.127 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.127 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.127 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.128 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.128 [nioEventLoopGroup-212-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:49.129 [nioEventLoopGroup-212-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:33582" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:49.129 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.129 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 => /127.0.0.1:33582] FLUSH
09:53:49.130 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:49.151 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 => /127.0.0.1:33582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33582
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.152 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 => /127.0.0.1:33582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.152 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 => /127.0.0.1:33582] FLUSH
09:53:49.153 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 => /127.0.0.1:33582] CLOSE()
09:53:49.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.155 [nioEventLoopGroup-226-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-226-1
09:53:49.172 [nioEventLoopGroup-212-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-11
09:53:49.172 [nioEventLoopGroup-212-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-1
09:53:49.172 [nioEventLoopGroup-212-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-2
09:53:49.172 [nioEventLoopGroup-212-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-3
09:53:49.172 [nioEventLoopGroup-212-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-4
09:53:49.172 [nioEventLoopGroup-212-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-5
09:53:49.172 [nioEventLoopGroup-212-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-6
09:53:49.172 [nioEventLoopGroup-212-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-7
09:53:49.172 [nioEventLoopGroup-212-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-8
09:53:49.172 [nioEventLoopGroup-212-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-9
09:53:49.172 [nioEventLoopGroup-212-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-10
09:53:49.172 [nioEventLoopGroup-212-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-12
09:53:49.172 [nioEventLoopGroup-212-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-13
09:53:49.172 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 :> /127.0.0.1:33582] INACTIVE
09:53:49.174 [nioEventLoopGroup-212-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7287dcfe, /127.0.0.1:38746 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.527 [nioEventLoopGroup-196-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-196-14
09:53:49.528 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.529 [MockServer thread for port: 35511] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35511
09:53:49.531 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.532 [nioEventLoopGroup-228-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:49.533 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.533 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 => /127.0.0.1:35511] FLUSH
09:53:49.533 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 => /127.0.0.1:35511] FLUSH
09:53:49.533 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.533 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 :> /127.0.0.1:35511] INACTIVE
09:53:49.533 [nioEventLoopGroup-228-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2ad7994, /127.0.0.1:52554 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.534 [nioEventLoopGroup-229-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-229-1
09:53:49.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.543 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.546 [nioEventLoopGroup-228-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:49.547 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.548 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 => /127.0.0.1:35511] FLUSH
09:53:49.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.549 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 => /127.0.0.1:35511] FLUSH
09:53:49.549 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 :> /127.0.0.1:35511] INACTIVE
09:53:49.549 [nioEventLoopGroup-230-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-230-1
09:53:49.557 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.557 [nioEventLoopGroup-228-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb1ddb83, /127.0.0.1:52556 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.562 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.563 [nioEventLoopGroup-228-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:49.563 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.563 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 => /127.0.0.1:35511] FLUSH
09:53:49.564 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.564 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 => /127.0.0.1:35511] FLUSH
09:53:49.564 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 :> /127.0.0.1:35511] INACTIVE
09:53:49.564 [nioEventLoopGroup-228-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7ff50405, /127.0.0.1:52558 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.564 [nioEventLoopGroup-231-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-231-1
09:53:49.572 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.577 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.579 [nioEventLoopGroup-228-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:49.580 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.580 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 => /127.0.0.1:35511] FLUSH
09:53:49.580 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.581 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 => /127.0.0.1:35511] FLUSH
09:53:49.581 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 :> /127.0.0.1:35511] INACTIVE
09:53:49.581 [nioEventLoopGroup-228-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b28aaa2, /127.0.0.1:52560 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.581 [nioEventLoopGroup-232-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-232-1
09:53:49.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.588 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.590 [nioEventLoopGroup-228-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:49.591 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.592 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 => /127.0.0.1:35511] FLUSH
09:53:49.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.592 [nioEventLoopGroup-233-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-233-1
09:53:49.593 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 => /127.0.0.1:35511] FLUSH
09:53:49.593 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 :> /127.0.0.1:35511] INACTIVE
09:53:49.593 [nioEventLoopGroup-228-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9b3cc814, /127.0.0.1:52562 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.600 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.601 [nioEventLoopGroup-228-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:49.602 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.602 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 => /127.0.0.1:35511] FLUSH
09:53:49.602 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.602 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 => /127.0.0.1:35511] FLUSH
09:53:49.603 [nioEventLoopGroup-234-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-234-1
09:53:49.603 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 :> /127.0.0.1:35511] INACTIVE
09:53:49.603 [nioEventLoopGroup-228-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a7a217, /127.0.0.1:52564 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.616 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.621 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.622 [nioEventLoopGroup-228-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:49.622 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.622 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 => /127.0.0.1:35511] FLUSH
09:53:49.623 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.623 [nioEventLoopGroup-235-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-235-1
09:53:49.623 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 => /127.0.0.1:35511] FLUSH
09:53:49.623 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 :> /127.0.0.1:35511] INACTIVE
09:53:49.624 [nioEventLoopGroup-228-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14cc8bbf, /127.0.0.1:52566 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.632 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.641 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.643 [nioEventLoopGroup-228-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:49.645 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.646 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 => /127.0.0.1:35511] FLUSH
09:53:49.646 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.647 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 => /127.0.0.1:35511] FLUSH
09:53:49.647 [nioEventLoopGroup-236-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-236-1
09:53:49.647 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 :> /127.0.0.1:35511] INACTIVE
09:53:49.647 [nioEventLoopGroup-228-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3345f52, /127.0.0.1:52568 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.655 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.664 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.666 [nioEventLoopGroup-228-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:49.668 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.669 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 => /127.0.0.1:35511] FLUSH
09:53:49.669 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 => /127.0.0.1:35511] FLUSH
09:53:49.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.669 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 :> /127.0.0.1:35511] INACTIVE
09:53:49.671 [nioEventLoopGroup-228-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1eb5c4ba, /127.0.0.1:52570 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.673 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 :> /127.0.0.1:33582] FLUSH
09:53:49.673 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 :> /127.0.0.1:33582] INACTIVE
09:53:49.674 [nioEventLoopGroup-212-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaaea1131, /127.0.0.1:38748 :> /127.0.0.1:33582] UNREGISTERED
09:53:49.674 [nioEventLoopGroup-212-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-15
09:53:49.675 [nioEventLoopGroup-237-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-237-1
09:53:49.677 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.681 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.682 [nioEventLoopGroup-228-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:49.683 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.683 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 => /127.0.0.1:35511] FLUSH
09:53:49.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.684 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 => /127.0.0.1:35511] FLUSH
09:53:49.684 [nioEventLoopGroup-238-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-238-1
09:53:49.690 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 :> /127.0.0.1:35511] INACTIVE
09:53:49.690 [nioEventLoopGroup-228-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd456b005, /127.0.0.1:52572 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.695 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.696 [nioEventLoopGroup-228-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:49.696 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.696 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 => /127.0.0.1:35511] FLUSH
09:53:49.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.697 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 => /127.0.0.1:35511] FLUSH
09:53:49.697 [nioEventLoopGroup-239-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-239-1
09:53:49.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.708 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 :> /127.0.0.1:35511] INACTIVE
09:53:49.708 [nioEventLoopGroup-228-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xacb63593, /127.0.0.1:52574 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.712 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.716 [nioEventLoopGroup-228-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:49.717 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.717 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 => /127.0.0.1:35511] FLUSH
09:53:49.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.718 [nioEventLoopGroup-240-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-240-1
09:53:49.718 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 => /127.0.0.1:35511] FLUSH
09:53:49.719 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 :> /127.0.0.1:35511] INACTIVE
09:53:49.719 [nioEventLoopGroup-228-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xff1a6de2, /127.0.0.1:52576 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:49.723 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 => /127.0.0.1:35511] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:49.728 [nioEventLoopGroup-228-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:49.730 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.730 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 => /127.0.0.1:35511] FLUSH
09:53:49.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.732 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 => /127.0.0.1:35511] FLUSH
09:53:49.732 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 :> /127.0.0.1:35511] INACTIVE
09:53:49.732 [nioEventLoopGroup-228-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8c4b916, /127.0.0.1:52578 :> /127.0.0.1:35511] UNREGISTERED
09:53:49.732 [nioEventLoopGroup-241-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-241-1
09:53:49.737 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35511
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:49.738 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.741 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.745 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:49.748 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.750 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.753 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.756 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.758 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.761 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.764 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:49.766 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:49.768 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.769 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] FLUSH
09:53:49.771 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35511
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:49.772 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.773 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.773 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:49.773 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.774 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.774 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.775 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.775 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.775 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:49.775 [nioEventLoopGroup-228-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:49.776 [nioEventLoopGroup-228-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35511" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:49.776 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.776 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 => /127.0.0.1:35511] FLUSH
09:53:49.777 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:49.784 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 => /127.0.0.1:35511] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35511
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:49.785 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 => /127.0.0.1:35511] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:49.785 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 => /127.0.0.1:35511] FLUSH
09:53:49.785 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 => /127.0.0.1:35511] CLOSE()
09:53:49.785 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:49.786 [nioEventLoopGroup-242-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-242-1
09:53:49.800 [nioEventLoopGroup-228-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-4
09:53:49.800 [nioEventLoopGroup-228-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-1
09:53:49.800 [nioEventLoopGroup-228-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-2
09:53:49.800 [nioEventLoopGroup-228-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-3
09:53:49.800 [nioEventLoopGroup-228-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-5
09:53:49.800 [nioEventLoopGroup-228-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-6
09:53:49.800 [nioEventLoopGroup-228-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-7
09:53:49.800 [nioEventLoopGroup-228-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-9
09:53:49.800 [nioEventLoopGroup-228-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-10
09:53:49.800 [nioEventLoopGroup-228-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-11
09:53:49.801 [nioEventLoopGroup-228-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-8
09:53:49.801 [nioEventLoopGroup-228-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-13
09:53:49.801 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 :> /127.0.0.1:35511] INACTIVE
09:53:49.801 [nioEventLoopGroup-228-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-12
09:53:49.807 [nioEventLoopGroup-228-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6140d2a9, /127.0.0.1:52580 :> /127.0.0.1:35511] UNREGISTERED
09:53:50.173 [MockServer thread for port: 35367] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 35367
09:53:50.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.175 [nioEventLoopGroup-212-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-212-14
09:53:50.177 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.180 [nioEventLoopGroup-244-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.180 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.181 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 => /127.0.0.1:35367] FLUSH
09:53:50.181 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 => /127.0.0.1:35367] FLUSH
09:53:50.181 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.181 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 :> /127.0.0.1:35367] INACTIVE
09:53:50.181 [nioEventLoopGroup-245-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-245-1
09:53:50.181 [nioEventLoopGroup-244-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe2a3e9da, /127.0.0.1:43648 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.185 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.187 [nioEventLoopGroup-244-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:50.187 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.188 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 => /127.0.0.1:35367] FLUSH
09:53:50.188 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.188 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 => /127.0.0.1:35367] FLUSH
09:53:50.188 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 :> /127.0.0.1:35367] INACTIVE
09:53:50.188 [nioEventLoopGroup-244-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53979bc7, /127.0.0.1:43650 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.188 [nioEventLoopGroup-246-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-246-1
09:53:50.189 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.192 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.194 [nioEventLoopGroup-244-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:50.195 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.195 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 => /127.0.0.1:35367] FLUSH
09:53:50.195 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.196 [nioEventLoopGroup-247-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-247-1
09:53:50.196 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 => /127.0.0.1:35367] FLUSH
09:53:50.196 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 :> /127.0.0.1:35367] INACTIVE
09:53:50.196 [nioEventLoopGroup-244-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa585dda, /127.0.0.1:43652 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.202 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.204 [nioEventLoopGroup-244-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.204 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.204 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 => /127.0.0.1:35367] FLUSH
09:53:50.204 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.204 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 => /127.0.0.1:35367] FLUSH
09:53:50.204 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 :> /127.0.0.1:35367] INACTIVE
09:53:50.204 [nioEventLoopGroup-244-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6c787da2, /127.0.0.1:43654 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.204 [nioEventLoopGroup-248-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-248-1
09:53:50.206 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.208 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.209 [nioEventLoopGroup-244-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:50.209 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.209 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 => /127.0.0.1:35367] FLUSH
09:53:50.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.209 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 => /127.0.0.1:35367] FLUSH
09:53:50.210 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 :> /127.0.0.1:35367] INACTIVE
09:53:50.210 [nioEventLoopGroup-249-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-249-1
09:53:50.210 [nioEventLoopGroup-244-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xca568950, /127.0.0.1:43656 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.211 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.213 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.214 [nioEventLoopGroup-244-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:50.215 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.215 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 => /127.0.0.1:35367] FLUSH
09:53:50.215 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.215 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 => /127.0.0.1:35367] FLUSH
09:53:50.215 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 :> /127.0.0.1:35367] INACTIVE
09:53:50.215 [nioEventLoopGroup-244-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3196a3d, /127.0.0.1:43658 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.215 [nioEventLoopGroup-250-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-250-1
09:53:50.222 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.226 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.227 [nioEventLoopGroup-244-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:50.227 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.227 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 => /127.0.0.1:35367] FLUSH
09:53:50.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.228 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 => /127.0.0.1:35367] FLUSH
09:53:50.228 [nioEventLoopGroup-251-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-251-1
09:53:50.231 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 :> /127.0.0.1:35367] INACTIVE
09:53:50.231 [nioEventLoopGroup-244-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x554c8d9a, /127.0.0.1:43660 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.237 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.238 [nioEventLoopGroup-244-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:50.238 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.238 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 => /127.0.0.1:35367] FLUSH
09:53:50.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.238 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 => /127.0.0.1:35367] FLUSH
09:53:50.239 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 :> /127.0.0.1:35367] INACTIVE
09:53:50.239 [nioEventLoopGroup-244-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8f4c45, /127.0.0.1:43662 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.239 [nioEventLoopGroup-252-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-252-1
09:53:50.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.241 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.242 [nioEventLoopGroup-244-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:50.242 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.242 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 => /127.0.0.1:35367] FLUSH
09:53:50.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.243 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 => /127.0.0.1:35367] FLUSH
09:53:50.243 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 :> /127.0.0.1:35367] INACTIVE
09:53:50.243 [nioEventLoopGroup-244-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe80fe1b, /127.0.0.1:43664 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.243 [nioEventLoopGroup-253-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-253-1
09:53:50.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.246 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.247 [nioEventLoopGroup-244-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:50.247 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.247 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 => /127.0.0.1:35367] FLUSH
09:53:50.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.252 [nioEventLoopGroup-254-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-254-1
09:53:50.252 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 => /127.0.0.1:35367] FLUSH
09:53:50.252 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 :> /127.0.0.1:35367] INACTIVE
09:53:50.252 [nioEventLoopGroup-244-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4721f23f, /127.0.0.1:43666 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.253 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.259 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.260 [nioEventLoopGroup-244-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:50.260 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.260 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 => /127.0.0.1:35367] FLUSH
09:53:50.261 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.261 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 => /127.0.0.1:35367] FLUSH
09:53:50.261 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 :> /127.0.0.1:35367] INACTIVE
09:53:50.261 [nioEventLoopGroup-255-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-255-1
09:53:50.261 [nioEventLoopGroup-244-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50f8352e, /127.0.0.1:43668 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.263 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.265 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.266 [nioEventLoopGroup-244-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:50.266 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.266 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 => /127.0.0.1:35367] FLUSH
09:53:50.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.267 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 => /127.0.0.1:35367] FLUSH
09:53:50.267 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 :> /127.0.0.1:35367] INACTIVE
09:53:50.267 [nioEventLoopGroup-256-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-256-1
09:53:50.267 [nioEventLoopGroup-244-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb6d6e98, /127.0.0.1:43670 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.272 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.274 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 => /127.0.0.1:35367] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.275 [nioEventLoopGroup-244-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.276 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.276 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 => /127.0.0.1:35367] FLUSH
09:53:50.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.276 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 => /127.0.0.1:35367] FLUSH
09:53:50.276 [nioEventLoopGroup-257-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-257-1
09:53:50.276 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 :> /127.0.0.1:35367] INACTIVE
09:53:50.276 [nioEventLoopGroup-244-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf9658457, /127.0.0.1:43672 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.279 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35367
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:50.280 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.280 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.280 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:50.281 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.281 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.281 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.281 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.282 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.282 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.282 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.283 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:50.283 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:50.283 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.283 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] FLUSH
09:53:50.286 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:35367
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:50.287 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.287 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.287 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:50.287 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.288 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.288 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.289 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.289 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.289 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.289 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.289 [nioEventLoopGroup-244-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:50.290 [nioEventLoopGroup-244-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:35367" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:50.290 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.290 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 => /127.0.0.1:35367] FLUSH
09:53:50.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:50.293 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 => /127.0.0.1:35367] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:35367
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.294 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 => /127.0.0.1:35367] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.294 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 => /127.0.0.1:35367] FLUSH
09:53:50.294 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 => /127.0.0.1:35367] CLOSE()
09:53:50.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.295 [nioEventLoopGroup-244-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-2
09:53:50.295 [nioEventLoopGroup-244-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-1
09:53:50.295 [nioEventLoopGroup-244-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-4
09:53:50.295 [nioEventLoopGroup-244-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-3
09:53:50.295 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 :> /127.0.0.1:35367] INACTIVE
09:53:50.295 [nioEventLoopGroup-244-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-5
09:53:50.295 [nioEventLoopGroup-244-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-6
09:53:50.295 [nioEventLoopGroup-258-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-258-1
09:53:50.295 [nioEventLoopGroup-244-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-7
09:53:50.295 [nioEventLoopGroup-244-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-8
09:53:50.295 [nioEventLoopGroup-244-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-9
09:53:50.295 [nioEventLoopGroup-244-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-10
09:53:50.295 [nioEventLoopGroup-244-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-11
09:53:50.296 [nioEventLoopGroup-244-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-12
09:53:50.296 [nioEventLoopGroup-244-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-13
09:53:50.297 [nioEventLoopGroup-244-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0db0e4fa, /127.0.0.1:43674 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.306 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 :> /127.0.0.1:35511] FLUSH
09:53:50.307 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 :> /127.0.0.1:35511] INACTIVE
09:53:50.307 [nioEventLoopGroup-228-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa114dff2, /127.0.0.1:52582 :> /127.0.0.1:35511] UNREGISTERED
09:53:50.307 [nioEventLoopGroup-228-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-15
09:53:50.663 [MockServer thread for port: 40605] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40605
09:53:50.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.667 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.668 [nioEventLoopGroup-260-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.668 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.668 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 => /127.0.0.1:40605] FLUSH
09:53:50.669 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 => /127.0.0.1:40605] FLUSH
09:53:50.669 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.669 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 :> /127.0.0.1:40605] INACTIVE
09:53:50.669 [nioEventLoopGroup-261-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-261-1
09:53:50.669 [nioEventLoopGroup-260-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcafeb39b, /127.0.0.1:48086 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.670 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.673 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.674 [nioEventLoopGroup-260-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:50.674 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.675 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 => /127.0.0.1:40605] FLUSH
09:53:50.675 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.675 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 => /127.0.0.1:40605] FLUSH
09:53:50.675 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 :> /127.0.0.1:40605] INACTIVE
09:53:50.675 [nioEventLoopGroup-260-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe54efd67, /127.0.0.1:48088 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.675 [nioEventLoopGroup-262-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-262-1
09:53:50.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.679 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.680 [nioEventLoopGroup-260-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:50.680 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.680 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 => /127.0.0.1:40605] FLUSH
09:53:50.683 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.684 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 => /127.0.0.1:40605] FLUSH
09:53:50.684 [nioEventLoopGroup-263-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-263-1
09:53:50.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.687 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 :> /127.0.0.1:40605] INACTIVE
09:53:50.687 [nioEventLoopGroup-260-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xba0ae3cc, /127.0.0.1:48090 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.690 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.691 [nioEventLoopGroup-260-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.691 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.691 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 => /127.0.0.1:40605] FLUSH
09:53:50.692 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.692 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 => /127.0.0.1:40605] FLUSH
09:53:50.692 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 :> /127.0.0.1:40605] INACTIVE
09:53:50.692 [nioEventLoopGroup-264-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-264-1
09:53:50.692 [nioEventLoopGroup-260-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4570d98a, /127.0.0.1:48092 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.700 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.703 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.704 [nioEventLoopGroup-260-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:50.704 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.704 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 => /127.0.0.1:40605] FLUSH
09:53:50.705 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 => /127.0.0.1:40605] FLUSH
09:53:50.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.705 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 :> /127.0.0.1:40605] INACTIVE
09:53:50.705 [nioEventLoopGroup-260-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0dfab1d, /127.0.0.1:48094 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.705 [nioEventLoopGroup-265-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-265-1
09:53:50.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.718 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.720 [nioEventLoopGroup-260-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:50.720 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.720 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 => /127.0.0.1:40605] FLUSH
09:53:50.721 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 => /127.0.0.1:40605] FLUSH
09:53:50.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.721 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 :> /127.0.0.1:40605] INACTIVE
09:53:50.721 [nioEventLoopGroup-260-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ddfb869, /127.0.0.1:48096 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.721 [nioEventLoopGroup-266-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-266-1
09:53:50.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.732 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.733 [nioEventLoopGroup-260-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:50.733 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.733 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 => /127.0.0.1:40605] FLUSH
09:53:50.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.734 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 => /127.0.0.1:40605] FLUSH
09:53:50.734 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 :> /127.0.0.1:40605] INACTIVE
09:53:50.734 [nioEventLoopGroup-260-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc4985ff8, /127.0.0.1:48098 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.734 [nioEventLoopGroup-267-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-267-1
09:53:50.748 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.752 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.753 [nioEventLoopGroup-260-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:50.753 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.753 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 => /127.0.0.1:40605] FLUSH
09:53:50.754 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 => /127.0.0.1:40605] FLUSH
09:53:50.754 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.754 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 :> /127.0.0.1:40605] INACTIVE
09:53:50.754 [nioEventLoopGroup-260-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbf759260, /127.0.0.1:48100 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.755 [nioEventLoopGroup-268-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-268-1
09:53:50.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.759 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.760 [nioEventLoopGroup-260-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:50.760 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.760 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 => /127.0.0.1:40605] FLUSH
09:53:50.761 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.761 [nioEventLoopGroup-269-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-269-1
09:53:50.761 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 => /127.0.0.1:40605] FLUSH
09:53:50.761 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 :> /127.0.0.1:40605] INACTIVE
09:53:50.761 [nioEventLoopGroup-260-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4ffefb82, /127.0.0.1:48102 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.767 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.767 [nioEventLoopGroup-260-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:50.768 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.768 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 => /127.0.0.1:40605] FLUSH
09:53:50.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.768 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 => /127.0.0.1:40605] FLUSH
09:53:50.768 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 :> /127.0.0.1:40605] INACTIVE
09:53:50.768 [nioEventLoopGroup-260-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x22c098bc, /127.0.0.1:48104 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.768 [nioEventLoopGroup-270-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-270-1
09:53:50.769 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.773 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.773 [nioEventLoopGroup-260-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:50.774 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.774 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 => /127.0.0.1:40605] FLUSH
09:53:50.774 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.774 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 => /127.0.0.1:40605] FLUSH
09:53:50.774 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 :> /127.0.0.1:40605] INACTIVE
09:53:50.774 [nioEventLoopGroup-260-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc7a3e54, /127.0.0.1:48106 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.775 [nioEventLoopGroup-271-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-271-1
09:53:50.783 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.788 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.789 [nioEventLoopGroup-260-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:50.790 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.790 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 => /127.0.0.1:40605] FLUSH
09:53:50.790 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 => /127.0.0.1:40605] FLUSH
09:53:50.790 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.791 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 :> /127.0.0.1:40605] INACTIVE
09:53:50.791 [nioEventLoopGroup-260-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf29f4b92, /127.0.0.1:48108 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.791 [nioEventLoopGroup-272-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-272-1
09:53:50.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:50.796 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 => /127.0.0.1:40605] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:50.797 [nioEventLoopGroup-260-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:50.798 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.798 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 => /127.0.0.1:40605] FLUSH
09:53:50.799 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 => /127.0.0.1:40605] FLUSH
09:53:50.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.800 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 :> /127.0.0.1:40605] INACTIVE
09:53:50.800 [nioEventLoopGroup-260-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd46cec70, /127.0.0.1:48110 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.800 [nioEventLoopGroup-273-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-273-1
09:53:50.802 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 :> /127.0.0.1:35367] FLUSH
09:53:50.802 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 :> /127.0.0.1:35367] INACTIVE
09:53:50.802 [nioEventLoopGroup-244-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa502b3bb, /127.0.0.1:43676 :> /127.0.0.1:35367] UNREGISTERED
09:53:50.802 [nioEventLoopGroup-244-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-15
09:53:50.808 [nioEventLoopGroup-228-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-228-14
09:53:50.829 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf92798cc, /127.0.0.1:48114 => /127.0.0.1:40605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:40605
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:50.830 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.830 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.831 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:50.832 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.832 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.832 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.833 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.833 [nioEventLoopGroup-260-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:50.833 [nioEventLoopGroup-260-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:50.834 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf92798cc, /127.0.0.1:48114 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.834 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf92798cc, /127.0.0.1:48114 => /127.0.0.1:40605] FLUSH
09:53:50.848 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb85472, /127.0.0.1:48116 => /127.0.0.1:40605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Host: localhost:40605
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:50.849 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.852 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.854 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:50.855 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.855 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.856 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.856 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:50.856 [nioEventLoopGroup-260-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:50.857 [nioEventLoopGroup-260-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:40605" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:50.857 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb85472, /127.0.0.1:48116 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.857 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb85472, /127.0.0.1:48116 => /127.0.0.1:40605] FLUSH
09:53:50.858 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:50.862 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 => /127.0.0.1:40605] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40605
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:50.863 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 => /127.0.0.1:40605] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:50.863 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 => /127.0.0.1:40605] FLUSH
09:53:50.863 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 => /127.0.0.1:40605] CLOSE()
09:53:50.863 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:50.864 [nioEventLoopGroup-274-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-274-1
09:53:50.880 [nioEventLoopGroup-260-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-7
09:53:50.880 [nioEventLoopGroup-260-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-4
09:53:50.880 [nioEventLoopGroup-260-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-1
09:53:50.880 [nioEventLoopGroup-260-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-8
09:53:50.880 [nioEventLoopGroup-260-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-2
09:53:50.880 [nioEventLoopGroup-260-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-3
09:53:50.880 [nioEventLoopGroup-260-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-5
09:53:50.880 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb85472, /127.0.0.1:48116 :> /127.0.0.1:40605] INACTIVE
09:53:50.880 [nioEventLoopGroup-260-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-6
09:53:50.880 [nioEventLoopGroup-260-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-9
09:53:50.881 [nioEventLoopGroup-260-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-10
09:53:50.881 [nioEventLoopGroup-260-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-11
09:53:50.881 [nioEventLoopGroup-260-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-12
09:53:50.881 [nioEventLoopGroup-260-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-13
09:53:50.881 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf92798cc, /127.0.0.1:48114 :> /127.0.0.1:40605] INACTIVE
09:53:50.881 [nioEventLoopGroup-260-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cb85472, /127.0.0.1:48116 :> /127.0.0.1:40605] UNREGISTERED
09:53:50.881 [nioEventLoopGroup-260-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf92798cc, /127.0.0.1:48114 :> /127.0.0.1:40605] UNREGISTERED
09:53:51.236 [MockServer thread for port: 42609] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42609
09:53:51.236 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.238 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.239 [nioEventLoopGroup-276-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.239 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.239 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 => /127.0.0.1:42609] FLUSH
09:53:51.240 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 => /127.0.0.1:42609] FLUSH
09:53:51.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.240 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 :> /127.0.0.1:42609] INACTIVE
09:53:51.240 [nioEventLoopGroup-276-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x06438928, /127.0.0.1:40814 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.240 [nioEventLoopGroup-277-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-277-1
09:53:51.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.248 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.250 [nioEventLoopGroup-276-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:51.250 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.250 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 => /127.0.0.1:42609] FLUSH
09:53:51.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.250 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 => /127.0.0.1:42609] FLUSH
09:53:51.251 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 :> /127.0.0.1:42609] INACTIVE
09:53:51.251 [nioEventLoopGroup-278-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-278-1
09:53:51.251 [nioEventLoopGroup-276-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b4ac618, /127.0.0.1:40816 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.254 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.255 [nioEventLoopGroup-276-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:51.255 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.255 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 => /127.0.0.1:42609] FLUSH
09:53:51.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.255 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 => /127.0.0.1:42609] FLUSH
09:53:51.256 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 :> /127.0.0.1:42609] INACTIVE
09:53:51.256 [nioEventLoopGroup-276-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bf749dc, /127.0.0.1:40818 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.256 [nioEventLoopGroup-279-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-279-1
09:53:51.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.259 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.260 [nioEventLoopGroup-276-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.260 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.260 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 => /127.0.0.1:42609] FLUSH
09:53:51.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.260 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 => /127.0.0.1:42609] FLUSH
09:53:51.260 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 :> /127.0.0.1:42609] INACTIVE
09:53:51.261 [nioEventLoopGroup-276-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91a708e3, /127.0.0.1:40820 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.270 [nioEventLoopGroup-280-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-280-1
09:53:51.272 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.275 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.275 [nioEventLoopGroup-276-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:51.275 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.275 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 => /127.0.0.1:42609] FLUSH
09:53:51.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.276 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 => /127.0.0.1:42609] FLUSH
09:53:51.276 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 :> /127.0.0.1:42609] INACTIVE
09:53:51.276 [nioEventLoopGroup-276-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2795c19e, /127.0.0.1:40822 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.276 [nioEventLoopGroup-281-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-281-1
09:53:51.277 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.280 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.281 [nioEventLoopGroup-276-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:51.281 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.281 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 => /127.0.0.1:42609] FLUSH
09:53:51.281 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.281 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 => /127.0.0.1:42609] FLUSH
09:53:51.282 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 :> /127.0.0.1:42609] INACTIVE
09:53:51.282 [nioEventLoopGroup-276-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd43ea36b, /127.0.0.1:40824 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.282 [nioEventLoopGroup-282-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-282-1
09:53:51.283 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.285 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.286 [nioEventLoopGroup-276-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:51.286 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.286 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 => /127.0.0.1:42609] FLUSH
09:53:51.286 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.286 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 => /127.0.0.1:42609] FLUSH
09:53:51.286 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 :> /127.0.0.1:42609] INACTIVE
09:53:51.286 [nioEventLoopGroup-276-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf65b091c, /127.0.0.1:40826 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.286 [nioEventLoopGroup-283-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-283-1
09:53:51.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.289 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.289 [nioEventLoopGroup-276-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:51.290 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.290 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 => /127.0.0.1:42609] FLUSH
09:53:51.290 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.290 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 => /127.0.0.1:42609] FLUSH
09:53:51.290 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 :> /127.0.0.1:42609] INACTIVE
09:53:51.290 [nioEventLoopGroup-276-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcbf20d93, /127.0.0.1:40828 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.290 [nioEventLoopGroup-284-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-284-1
09:53:51.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.297 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.298 [nioEventLoopGroup-276-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:51.298 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.298 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 => /127.0.0.1:42609] FLUSH
09:53:51.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.298 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 => /127.0.0.1:42609] FLUSH
09:53:51.299 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 :> /127.0.0.1:42609] INACTIVE
09:53:51.299 [nioEventLoopGroup-276-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x61b6b847, /127.0.0.1:40830 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.299 [nioEventLoopGroup-285-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-285-1
09:53:51.303 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.305 [nioEventLoopGroup-244-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-244-14
09:53:51.306 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.306 [nioEventLoopGroup-276-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:51.306 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.306 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 => /127.0.0.1:42609] FLUSH
09:53:51.307 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 => /127.0.0.1:42609] FLUSH
09:53:51.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.307 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 :> /127.0.0.1:42609] INACTIVE
09:53:51.307 [nioEventLoopGroup-286-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-286-1
09:53:51.307 [nioEventLoopGroup-276-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x067168b2, /127.0.0.1:40832 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.309 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.310 [nioEventLoopGroup-276-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:51.310 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.310 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 => /127.0.0.1:42609] FLUSH
09:53:51.310 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 => /127.0.0.1:42609] FLUSH
09:53:51.310 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.310 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 :> /127.0.0.1:42609] INACTIVE
09:53:51.310 [nioEventLoopGroup-276-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x945b52fe, /127.0.0.1:40834 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.310 [nioEventLoopGroup-287-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-287-1
09:53:51.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.314 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.315 [nioEventLoopGroup-276-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:51.315 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.316 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 => /127.0.0.1:42609] FLUSH
09:53:51.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.316 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 => /127.0.0.1:42609] FLUSH
09:53:51.316 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 :> /127.0.0.1:42609] INACTIVE
09:53:51.316 [nioEventLoopGroup-276-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa74f1d62, /127.0.0.1:40836 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.316 [nioEventLoopGroup-288-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-288-1
09:53:51.317 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.319 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 => /127.0.0.1:42609] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.320 [nioEventLoopGroup-276-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.320 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.320 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 => /127.0.0.1:42609] FLUSH
09:53:51.320 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.321 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 => /127.0.0.1:42609] FLUSH
09:53:51.321 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 :> /127.0.0.1:42609] INACTIVE
09:53:51.321 [nioEventLoopGroup-289-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-289-1
09:53:51.321 [nioEventLoopGroup-276-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x748b4d0c, /127.0.0.1:40838 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.325 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3e0297, /127.0.0.1:40840 => /127.0.0.1:42609] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42609
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:51.326 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.326 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.326 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:51.326 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.327 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.327 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.327 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.327 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.327 [nioEventLoopGroup-276-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:51.328 [nioEventLoopGroup-276-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:51.328 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3e0297, /127.0.0.1:40840 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.328 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3e0297, /127.0.0.1:40840 => /127.0.0.1:42609] FLUSH
09:53:51.333 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x419dd954, /127.0.0.1:40842 => /127.0.0.1:42609] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Host: localhost:42609
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:51.333 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.333 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.334 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:51.334 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.334 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.334 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.335 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.335 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.335 [nioEventLoopGroup-276-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:51.335 [nioEventLoopGroup-276-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42609" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:51.335 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x419dd954, /127.0.0.1:40842 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.336 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x419dd954, /127.0.0.1:40842 => /127.0.0.1:42609] FLUSH
09:53:51.336 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:51.338 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 => /127.0.0.1:42609] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42609
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.338 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 => /127.0.0.1:42609] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.338 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 => /127.0.0.1:42609] FLUSH
09:53:51.338 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 => /127.0.0.1:42609] CLOSE()
09:53:51.338 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.339 [nioEventLoopGroup-290-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-290-1
09:53:51.340 [nioEventLoopGroup-276-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-1
09:53:51.340 [nioEventLoopGroup-276-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-2
09:53:51.340 [nioEventLoopGroup-276-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-3
09:53:51.340 [nioEventLoopGroup-276-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-4
09:53:51.340 [nioEventLoopGroup-276-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-6
09:53:51.340 [nioEventLoopGroup-276-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-5
09:53:51.340 [nioEventLoopGroup-276-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-7
09:53:51.340 [nioEventLoopGroup-276-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-8
09:53:51.340 [nioEventLoopGroup-276-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-9
09:53:51.340 [nioEventLoopGroup-276-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-10
09:53:51.341 [nioEventLoopGroup-276-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-11
09:53:51.341 [nioEventLoopGroup-276-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-12
09:53:51.341 [nioEventLoopGroup-276-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-13
09:53:51.341 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3e0297, /127.0.0.1:40840 :> /127.0.0.1:42609] INACTIVE
09:53:51.341 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x419dd954, /127.0.0.1:40842 :> /127.0.0.1:42609] INACTIVE
09:53:51.341 [nioEventLoopGroup-276-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef3e0297, /127.0.0.1:40840 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.341 [nioEventLoopGroup-276-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x419dd954, /127.0.0.1:40842 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.380 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 :> /127.0.0.1:40605] FLUSH
09:53:51.381 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 :> /127.0.0.1:40605] INACTIVE
09:53:51.381 [nioEventLoopGroup-260-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2f85884, /127.0.0.1:48118 :> /127.0.0.1:40605] UNREGISTERED
09:53:51.381 [nioEventLoopGroup-260-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-16
09:53:51.693 [MockServer thread for port: 41001] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41001
09:53:51.693 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.696 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.697 [nioEventLoopGroup-292-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.697 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.697 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 => /127.0.0.1:41001] FLUSH
09:53:51.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.698 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 => /127.0.0.1:41001] FLUSH
09:53:51.698 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 :> /127.0.0.1:41001] INACTIVE
09:53:51.698 [nioEventLoopGroup-292-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe3f6f411, /127.0.0.1:42936 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.698 [nioEventLoopGroup-293-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-293-1
09:53:51.700 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.702 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.704 [nioEventLoopGroup-292-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:51.704 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.704 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 => /127.0.0.1:41001] FLUSH
09:53:51.704 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.704 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 => /127.0.0.1:41001] FLUSH
09:53:51.704 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 :> /127.0.0.1:41001] INACTIVE
09:53:51.705 [nioEventLoopGroup-292-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8de82752, /127.0.0.1:42938 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.705 [nioEventLoopGroup-294-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-294-1
09:53:51.706 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.708 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.709 [nioEventLoopGroup-292-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:51.709 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.709 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 => /127.0.0.1:41001] FLUSH
09:53:51.709 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.709 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 => /127.0.0.1:41001] FLUSH
09:53:51.710 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 :> /127.0.0.1:41001] INACTIVE
09:53:51.710 [nioEventLoopGroup-295-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-295-1
09:53:51.710 [nioEventLoopGroup-292-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x80a76bc2, /127.0.0.1:42940 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.713 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.715 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.716 [nioEventLoopGroup-292-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.716 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.716 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 => /127.0.0.1:41001] FLUSH
09:53:51.716 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.717 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 => /127.0.0.1:41001] FLUSH
09:53:51.717 [nioEventLoopGroup-296-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-296-1
09:53:51.717 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 :> /127.0.0.1:41001] INACTIVE
09:53:51.717 [nioEventLoopGroup-292-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90b9601f, /127.0.0.1:42942 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.722 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.723 [nioEventLoopGroup-292-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:51.723 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.723 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 => /127.0.0.1:41001] FLUSH
09:53:51.724 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 => /127.0.0.1:41001] FLUSH
09:53:51.723 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.724 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 :> /127.0.0.1:41001] INACTIVE
09:53:51.724 [nioEventLoopGroup-292-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd62af231, /127.0.0.1:42944 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.724 [nioEventLoopGroup-297-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-297-1
09:53:51.726 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.729 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.729 [nioEventLoopGroup-292-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:51.729 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.730 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 => /127.0.0.1:41001] FLUSH
09:53:51.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.730 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 => /127.0.0.1:41001] FLUSH
09:53:51.730 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 :> /127.0.0.1:41001] INACTIVE
09:53:51.730 [nioEventLoopGroup-292-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2b56fef, /127.0.0.1:42946 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.730 [nioEventLoopGroup-298-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-298-1
09:53:51.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.733 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.733 [nioEventLoopGroup-292-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:51.733 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.734 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 => /127.0.0.1:41001] FLUSH
09:53:51.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.734 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 => /127.0.0.1:41001] FLUSH
09:53:51.734 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 :> /127.0.0.1:41001] INACTIVE
09:53:51.734 [nioEventLoopGroup-292-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64b0e8f3, /127.0.0.1:42948 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.734 [nioEventLoopGroup-299-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-299-1
09:53:51.735 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.737 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.737 [nioEventLoopGroup-292-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:51.737 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.737 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 => /127.0.0.1:41001] FLUSH
09:53:51.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.738 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 => /127.0.0.1:41001] FLUSH
09:53:51.738 [nioEventLoopGroup-300-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-300-1
09:53:51.738 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 :> /127.0.0.1:41001] INACTIVE
09:53:51.738 [nioEventLoopGroup-292-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c28ab24, /127.0.0.1:42950 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.738 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.740 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.741 [nioEventLoopGroup-292-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:51.741 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.741 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 => /127.0.0.1:41001] FLUSH
09:53:51.742 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.742 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 => /127.0.0.1:41001] FLUSH
09:53:51.742 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 :> /127.0.0.1:41001] INACTIVE
09:53:51.742 [nioEventLoopGroup-292-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae5d23c4, /127.0.0.1:42952 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.742 [nioEventLoopGroup-301-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-301-1
09:53:51.743 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.746 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.746 [nioEventLoopGroup-292-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:51.747 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.747 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 => /127.0.0.1:41001] FLUSH
09:53:51.747 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.747 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 => /127.0.0.1:41001] FLUSH
09:53:51.747 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 :> /127.0.0.1:41001] INACTIVE
09:53:51.747 [nioEventLoopGroup-292-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe26fb64a, /127.0.0.1:42954 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.747 [nioEventLoopGroup-302-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-302-1
09:53:51.748 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.750 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.750 [nioEventLoopGroup-292-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:51.751 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.751 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 => /127.0.0.1:41001] FLUSH
09:53:51.751 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 => /127.0.0.1:41001] FLUSH
09:53:51.751 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.751 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 :> /127.0.0.1:41001] INACTIVE
09:53:51.751 [nioEventLoopGroup-292-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x333e3ca8, /127.0.0.1:42956 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.751 [nioEventLoopGroup-303-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-303-1
09:53:51.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.754 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.755 [nioEventLoopGroup-292-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:51.755 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.755 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 => /127.0.0.1:41001] FLUSH
09:53:51.755 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 => /127.0.0.1:41001] FLUSH
09:53:51.755 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.755 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 :> /127.0.0.1:41001] INACTIVE
09:53:51.755 [nioEventLoopGroup-292-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcc970e8, /127.0.0.1:42958 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.756 [nioEventLoopGroup-304-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-304-1
09:53:51.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:51.759 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 => /127.0.0.1:41001] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:51.760 [nioEventLoopGroup-292-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:51.761 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.761 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 => /127.0.0.1:41001] FLUSH
09:53:51.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.762 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 => /127.0.0.1:41001] FLUSH
09:53:51.762 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 :> /127.0.0.1:41001] INACTIVE
09:53:51.762 [nioEventLoopGroup-292-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8128653, /127.0.0.1:42960 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.762 [nioEventLoopGroup-305-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-305-1
09:53:51.768 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72164878, /127.0.0.1:42962 => /127.0.0.1:41001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41001
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:51.768 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.768 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.768 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.769 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.770 [nioEventLoopGroup-292-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:51.770 [nioEventLoopGroup-292-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:51.770 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72164878, /127.0.0.1:42962 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.770 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72164878, /127.0.0.1:42962 => /127.0.0.1:41001] FLUSH
09:53:51.775 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x947f40ca, /127.0.0.1:42964 => /127.0.0.1:41001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Host: localhost:41001
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:51.776 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.776 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.776 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:51.777 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.777 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.777 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.777 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.778 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.778 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:51.778 [nioEventLoopGroup-292-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:51.778 [nioEventLoopGroup-292-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41001" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:51.779 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x947f40ca, /127.0.0.1:42964 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.779 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x947f40ca, /127.0.0.1:42964 => /127.0.0.1:41001] FLUSH
09:53:51.780 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:51.781 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 => /127.0.0.1:41001] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41001
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:51.782 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 => /127.0.0.1:41001] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:51.782 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 => /127.0.0.1:41001] FLUSH
09:53:51.782 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 => /127.0.0.1:41001] CLOSE()
09:53:51.782 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:51.783 [nioEventLoopGroup-306-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-306-1
09:53:51.784 [nioEventLoopGroup-292-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-4
09:53:51.784 [nioEventLoopGroup-292-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-5
09:53:51.784 [nioEventLoopGroup-292-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-1
09:53:51.784 [nioEventLoopGroup-292-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-10
09:53:51.784 [nioEventLoopGroup-292-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-6
09:53:51.784 [nioEventLoopGroup-292-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-13
09:53:51.784 [nioEventLoopGroup-292-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-12
09:53:51.784 [nioEventLoopGroup-292-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-2
09:53:51.785 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x947f40ca, /127.0.0.1:42964 :> /127.0.0.1:41001] INACTIVE
09:53:51.785 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72164878, /127.0.0.1:42962 :> /127.0.0.1:41001] INACTIVE
09:53:51.785 [nioEventLoopGroup-292-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-3
09:53:51.785 [nioEventLoopGroup-292-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-7
09:53:51.785 [nioEventLoopGroup-292-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-8
09:53:51.785 [nioEventLoopGroup-292-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x947f40ca, /127.0.0.1:42964 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.785 [nioEventLoopGroup-292-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-11
09:53:51.785 [nioEventLoopGroup-292-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x72164878, /127.0.0.1:42962 :> /127.0.0.1:41001] UNREGISTERED
09:53:51.790 [nioEventLoopGroup-292-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-9
09:53:51.841 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 :> /127.0.0.1:42609] FLUSH
09:53:51.841 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 :> /127.0.0.1:42609] INACTIVE
09:53:51.841 [nioEventLoopGroup-276-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4b2261f3, /127.0.0.1:40844 :> /127.0.0.1:42609] UNREGISTERED
09:53:51.841 [nioEventLoopGroup-276-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-16
09:53:51.883 [nioEventLoopGroup-260-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-14
09:53:51.883 [nioEventLoopGroup-260-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-260-15
09:53:52.139 [MockServer thread for port: 34233] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34233
09:53:52.140 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.153 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.154 [nioEventLoopGroup-308-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.154 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.155 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 => /127.0.0.1:34233] FLUSH
09:53:52.155 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.155 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 => /127.0.0.1:34233] FLUSH
09:53:52.155 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 :> /127.0.0.1:34233] INACTIVE
09:53:52.155 [nioEventLoopGroup-308-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65559ab1, /127.0.0.1:59088 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.155 [nioEventLoopGroup-309-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-309-1
09:53:52.169 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.172 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.180 [nioEventLoopGroup-308-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:52.180 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.180 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 => /127.0.0.1:34233] FLUSH
09:53:52.181 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.181 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 => /127.0.0.1:34233] FLUSH
09:53:52.181 [nioEventLoopGroup-310-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-310-1
09:53:52.181 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 :> /127.0.0.1:34233] INACTIVE
09:53:52.181 [nioEventLoopGroup-308-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ebdcc07, /127.0.0.1:59090 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.182 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.186 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.187 [nioEventLoopGroup-308-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:52.187 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.188 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 => /127.0.0.1:34233] FLUSH
09:53:52.188 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 => /127.0.0.1:34233] FLUSH
09:53:52.188 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.188 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 :> /127.0.0.1:34233] INACTIVE
09:53:52.188 [nioEventLoopGroup-308-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe65ddbd, /127.0.0.1:59092 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.188 [nioEventLoopGroup-311-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-311-1
09:53:52.192 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.195 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.195 [nioEventLoopGroup-308-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.196 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.196 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 => /127.0.0.1:34233] FLUSH
09:53:52.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.196 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 => /127.0.0.1:34233] FLUSH
09:53:52.196 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 :> /127.0.0.1:34233] INACTIVE
09:53:52.196 [nioEventLoopGroup-308-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x64e92f14, /127.0.0.1:59094 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.196 [nioEventLoopGroup-312-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-312-1
09:53:52.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.201 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.202 [nioEventLoopGroup-308-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:52.202 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.202 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 => /127.0.0.1:34233] FLUSH
09:53:52.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.203 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 => /127.0.0.1:34233] FLUSH
09:53:52.203 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 :> /127.0.0.1:34233] INACTIVE
09:53:52.203 [nioEventLoopGroup-308-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cce40d, /127.0.0.1:59096 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.203 [nioEventLoopGroup-313-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-313-1
09:53:52.204 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.207 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.208 [nioEventLoopGroup-308-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:52.208 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.208 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 => /127.0.0.1:34233] FLUSH
09:53:52.209 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.209 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 => /127.0.0.1:34233] FLUSH
09:53:52.209 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 :> /127.0.0.1:34233] INACTIVE
09:53:52.209 [nioEventLoopGroup-308-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb804ab39, /127.0.0.1:59098 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.209 [nioEventLoopGroup-314-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-314-1
09:53:52.212 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.217 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.218 [nioEventLoopGroup-308-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:52.218 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.218 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 => /127.0.0.1:34233] FLUSH
09:53:52.219 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.219 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 => /127.0.0.1:34233] FLUSH
09:53:52.219 [nioEventLoopGroup-315-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-315-1
09:53:52.219 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 :> /127.0.0.1:34233] INACTIVE
09:53:52.219 [nioEventLoopGroup-308-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x051e4506, /127.0.0.1:59100 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.226 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.227 [nioEventLoopGroup-308-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:52.228 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.228 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 => /127.0.0.1:34233] FLUSH
09:53:52.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.229 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 => /127.0.0.1:34233] FLUSH
09:53:52.229 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 :> /127.0.0.1:34233] INACTIVE
09:53:52.229 [nioEventLoopGroup-308-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbcc0cc5b, /127.0.0.1:59102 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.229 [nioEventLoopGroup-316-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-316-1
09:53:52.230 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.233 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.234 [nioEventLoopGroup-308-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:52.234 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.234 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 => /127.0.0.1:34233] FLUSH
09:53:52.235 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.235 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 => /127.0.0.1:34233] FLUSH
09:53:52.235 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 :> /127.0.0.1:34233] INACTIVE
09:53:52.235 [nioEventLoopGroup-308-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3973c6bc, /127.0.0.1:59104 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.235 [nioEventLoopGroup-317-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-317-1
09:53:52.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.242 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.242 [nioEventLoopGroup-308-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:52.243 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.243 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 => /127.0.0.1:34233] FLUSH
09:53:52.243 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 => /127.0.0.1:34233] FLUSH
09:53:52.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.243 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 :> /127.0.0.1:34233] INACTIVE
09:53:52.243 [nioEventLoopGroup-308-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xce021255, /127.0.0.1:59106 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.243 [nioEventLoopGroup-318-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-318-1
09:53:52.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.247 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.248 [nioEventLoopGroup-308-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:52.248 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.248 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 => /127.0.0.1:34233] FLUSH
09:53:52.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.249 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 => /127.0.0.1:34233] FLUSH
09:53:52.249 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 :> /127.0.0.1:34233] INACTIVE
09:53:52.249 [nioEventLoopGroup-308-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9cd5f294, /127.0.0.1:59108 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.249 [nioEventLoopGroup-319-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-319-1
09:53:52.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.253 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.254 [nioEventLoopGroup-308-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:52.254 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.254 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 => /127.0.0.1:34233] FLUSH
09:53:52.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.254 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 => /127.0.0.1:34233] FLUSH
09:53:52.254 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 :> /127.0.0.1:34233] INACTIVE
09:53:52.254 [nioEventLoopGroup-308-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac145040, /127.0.0.1:59110 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.254 [nioEventLoopGroup-320-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-320-1
09:53:52.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.257 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 => /127.0.0.1:34233] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.258 [nioEventLoopGroup-308-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.258 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.258 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 => /127.0.0.1:34233] FLUSH
09:53:52.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.259 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 => /127.0.0.1:34233] FLUSH
09:53:52.259 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 :> /127.0.0.1:34233] INACTIVE
09:53:52.259 [nioEventLoopGroup-308-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd86d02b, /127.0.0.1:59112 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.259 [nioEventLoopGroup-321-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-321-1
09:53:52.263 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b1e3bf5, /127.0.0.1:59114 => /127.0.0.1:34233] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:34233
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:52.264 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.264 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.264 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:52.264 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.265 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.265 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.265 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.265 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.265 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.266 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.266 [nioEventLoopGroup-308-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:52.266 [nioEventLoopGroup-308-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:52.267 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b1e3bf5, /127.0.0.1:59114 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.267 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b1e3bf5, /127.0.0.1:59114 => /127.0.0.1:34233] FLUSH
09:53:52.271 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa082ea76, /127.0.0.1:59116 => /127.0.0.1:34233] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Host: localhost:34233
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:52.271 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.271 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.272 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.273 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.273 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.273 [nioEventLoopGroup-308-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:52.273 [nioEventLoopGroup-308-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34233" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:52.273 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa082ea76, /127.0.0.1:59116 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.273 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa082ea76, /127.0.0.1:59116 => /127.0.0.1:34233] FLUSH
09:53:52.274 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:52.276 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 => /127.0.0.1:34233] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34233
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.276 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 => /127.0.0.1:34233] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.276 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 => /127.0.0.1:34233] FLUSH
09:53:52.276 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 => /127.0.0.1:34233] CLOSE()
09:53:52.277 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.277 [nioEventLoopGroup-322-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-322-1
09:53:52.281 [nioEventLoopGroup-308-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-2
09:53:52.281 [nioEventLoopGroup-308-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-1
09:53:52.281 [nioEventLoopGroup-308-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-3
09:53:52.281 [nioEventLoopGroup-308-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-4
09:53:52.281 [nioEventLoopGroup-308-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-5
09:53:52.281 [nioEventLoopGroup-308-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-7
09:53:52.281 [nioEventLoopGroup-308-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-6
09:53:52.281 [nioEventLoopGroup-308-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-8
09:53:52.281 [nioEventLoopGroup-308-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-9
09:53:52.281 [nioEventLoopGroup-308-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-10
09:53:52.281 [nioEventLoopGroup-308-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-12
09:53:52.281 [nioEventLoopGroup-308-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-13
09:53:52.281 [nioEventLoopGroup-308-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-11
09:53:52.281 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b1e3bf5, /127.0.0.1:59114 :> /127.0.0.1:34233] INACTIVE
09:53:52.281 [nioEventLoopGroup-308-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3b1e3bf5, /127.0.0.1:59114 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.281 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa082ea76, /127.0.0.1:59116 :> /127.0.0.1:34233] INACTIVE
09:53:52.281 [nioEventLoopGroup-308-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa082ea76, /127.0.0.1:59116 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.284 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 :> /127.0.0.1:41001] FLUSH
09:53:52.285 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 :> /127.0.0.1:41001] INACTIVE
09:53:52.285 [nioEventLoopGroup-292-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd30b37b2, /127.0.0.1:42966 :> /127.0.0.1:41001] UNREGISTERED
09:53:52.285 [nioEventLoopGroup-292-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-16
09:53:52.342 [nioEventLoopGroup-276-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-15
09:53:52.342 [nioEventLoopGroup-276-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-276-14
09:53:52.633 [MockServer thread for port: 44905] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44905
09:53:52.633 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.636 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.637 [nioEventLoopGroup-324-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.637 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.637 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 => /127.0.0.1:44905] FLUSH
09:53:52.637 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.637 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 => /127.0.0.1:44905] FLUSH
09:53:52.637 [nioEventLoopGroup-325-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-325-1
09:53:52.638 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 :> /127.0.0.1:44905] INACTIVE
09:53:52.638 [nioEventLoopGroup-324-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf10a3d65, /127.0.0.1:32878 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.641 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.642 [nioEventLoopGroup-324-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:52.642 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.643 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 => /127.0.0.1:44905] FLUSH
09:53:52.643 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 => /127.0.0.1:44905] FLUSH
09:53:52.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.643 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 :> /127.0.0.1:44905] INACTIVE
09:53:52.643 [nioEventLoopGroup-324-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb405ce4, /127.0.0.1:32880 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.643 [nioEventLoopGroup-326-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-326-1
09:53:52.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.647 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.648 [nioEventLoopGroup-324-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:52.648 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.648 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 => /127.0.0.1:44905] FLUSH
09:53:52.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.648 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 => /127.0.0.1:44905] FLUSH
09:53:52.648 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 :> /127.0.0.1:44905] INACTIVE
09:53:52.648 [nioEventLoopGroup-324-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14388ad, /127.0.0.1:32882 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.648 [nioEventLoopGroup-327-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-327-1
09:53:52.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.651 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.652 [nioEventLoopGroup-324-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.652 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.652 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 => /127.0.0.1:44905] FLUSH
09:53:52.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.652 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 => /127.0.0.1:44905] FLUSH
09:53:52.652 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 :> /127.0.0.1:44905] INACTIVE
09:53:52.652 [nioEventLoopGroup-324-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa77e730, /127.0.0.1:32884 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.652 [nioEventLoopGroup-328-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-328-1
09:53:52.653 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.657 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.657 [nioEventLoopGroup-324-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:52.657 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.658 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 => /127.0.0.1:44905] FLUSH
09:53:52.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.658 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 => /127.0.0.1:44905] FLUSH
09:53:52.658 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 :> /127.0.0.1:44905] INACTIVE
09:53:52.658 [nioEventLoopGroup-324-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaaa1088, /127.0.0.1:32886 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.658 [nioEventLoopGroup-329-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-329-1
09:53:52.660 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.663 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.664 [nioEventLoopGroup-324-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:52.664 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.664 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 => /127.0.0.1:44905] FLUSH
09:53:52.664 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.664 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 => /127.0.0.1:44905] FLUSH
09:53:52.664 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 :> /127.0.0.1:44905] INACTIVE
09:53:52.664 [nioEventLoopGroup-324-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4c3b6636, /127.0.0.1:32888 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.664 [nioEventLoopGroup-330-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-330-1
09:53:52.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.688 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.689 [nioEventLoopGroup-324-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:52.689 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.689 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 => /127.0.0.1:44905] FLUSH
09:53:52.689 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.689 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 => /127.0.0.1:44905] FLUSH
09:53:52.689 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 :> /127.0.0.1:44905] INACTIVE
09:53:52.689 [nioEventLoopGroup-324-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x363b58eb, /127.0.0.1:32892 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.689 [nioEventLoopGroup-331-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-331-1
09:53:52.696 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.700 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.701 [nioEventLoopGroup-324-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:52.701 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.701 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 => /127.0.0.1:44905] FLUSH
09:53:52.702 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 => /127.0.0.1:44905] FLUSH
09:53:52.702 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 :> /127.0.0.1:44905] INACTIVE
09:53:52.702 [nioEventLoopGroup-324-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe25afd4d, /127.0.0.1:32896 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.703 [nioEventLoopGroup-332-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-332-1
09:53:52.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.713 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.714 [nioEventLoopGroup-324-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:52.714 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.714 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 => /127.0.0.1:44905] FLUSH
09:53:52.715 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 => /127.0.0.1:44905] FLUSH
09:53:52.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.715 [nioEventLoopGroup-333-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-333-1
09:53:52.715 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 :> /127.0.0.1:44905] INACTIVE
09:53:52.716 [nioEventLoopGroup-324-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4be0bedf, /127.0.0.1:32898 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.719 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.722 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.723 [nioEventLoopGroup-324-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:52.723 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.723 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 => /127.0.0.1:44905] FLUSH
09:53:52.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.724 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 => /127.0.0.1:44905] FLUSH
09:53:52.724 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 :> /127.0.0.1:44905] INACTIVE
09:53:52.724 [nioEventLoopGroup-324-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb135b86b, /127.0.0.1:32902 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.724 [nioEventLoopGroup-334-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-334-1
09:53:52.726 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.729 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.730 [nioEventLoopGroup-324-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:52.730 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.730 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 => /127.0.0.1:44905] FLUSH
09:53:52.731 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 => /127.0.0.1:44905] FLUSH
09:53:52.731 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 :> /127.0.0.1:44905] INACTIVE
09:53:52.731 [nioEventLoopGroup-324-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e4f4ba7, /127.0.0.1:32904 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.731 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.731 [nioEventLoopGroup-335-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-335-1
09:53:52.732 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.737 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.738 [nioEventLoopGroup-324-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:52.738 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.738 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 => /127.0.0.1:44905] FLUSH
09:53:52.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.739 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 => /127.0.0.1:44905] FLUSH
09:53:52.739 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 :> /127.0.0.1:44905] INACTIVE
09:53:52.739 [nioEventLoopGroup-324-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a468deb, /127.0.0.1:32906 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.739 [nioEventLoopGroup-336-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-336-1
09:53:52.744 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:52.747 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 => /127.0.0.1:44905] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:52.748 [nioEventLoopGroup-324-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:52.749 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.749 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 => /127.0.0.1:44905] FLUSH
09:53:52.749 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.749 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 => /127.0.0.1:44905] FLUSH
09:53:52.749 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 :> /127.0.0.1:44905] INACTIVE
09:53:52.749 [nioEventLoopGroup-324-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a6f1628, /127.0.0.1:32908 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.749 [nioEventLoopGroup-337-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-337-1
09:53:52.752 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44905
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:52.752 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.753 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.753 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:52.753 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.753 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.753 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.754 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.754 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:52.754 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:52.754 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.754 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] FLUSH
09:53:52.756 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status200 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44905
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:52.756 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.756 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.756 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:52.757 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.757 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.757 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.758 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:52.758 [nioEventLoopGroup-324-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status200"
}
09:53:52.758 [nioEventLoopGroup-324-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200
}
for request:
{
"method" : "GET",
"path" : "/status200",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44905" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:52.759 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 200 OK
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.759 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 => /127.0.0.1:44905] FLUSH
09:53:52.759 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:52.761 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 => /127.0.0.1:44905] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44905
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:52.762 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 => /127.0.0.1:44905] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:52.762 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 => /127.0.0.1:44905] FLUSH
09:53:52.762 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 => /127.0.0.1:44905] CLOSE()
09:53:52.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:52.762 [nioEventLoopGroup-338-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-338-1
09:53:52.767 [nioEventLoopGroup-324-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-10
09:53:52.767 [nioEventLoopGroup-324-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-5
09:53:52.767 [nioEventLoopGroup-324-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-9
09:53:52.767 [nioEventLoopGroup-324-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-3
09:53:52.767 [nioEventLoopGroup-324-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-7
09:53:52.767 [nioEventLoopGroup-324-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-2
09:53:52.767 [nioEventLoopGroup-324-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-6
09:53:52.767 [nioEventLoopGroup-324-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-12
09:53:52.767 [nioEventLoopGroup-324-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-8
09:53:52.767 [nioEventLoopGroup-324-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-13
09:53:52.767 [nioEventLoopGroup-324-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-11
09:53:52.767 [nioEventLoopGroup-324-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-1
09:53:52.767 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 :> /127.0.0.1:44905] INACTIVE
09:53:52.768 [nioEventLoopGroup-324-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-4
09:53:52.771 [nioEventLoopGroup-324-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6cd93890, /127.0.0.1:32910 :> /127.0.0.1:44905] UNREGISTERED
09:53:52.781 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 :> /127.0.0.1:34233] FLUSH
09:53:52.781 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 :> /127.0.0.1:34233] INACTIVE
09:53:52.781 [nioEventLoopGroup-308-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bff1cf, /127.0.0.1:59118 :> /127.0.0.1:34233] UNREGISTERED
09:53:52.781 [nioEventLoopGroup-308-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-16
09:53:52.786 [nioEventLoopGroup-292-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-15
09:53:52.786 [nioEventLoopGroup-292-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-292-14
09:53:53.119 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.120 [MockServer thread for port: 43059] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43059
09:53:53.124 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.127 [nioEventLoopGroup-340-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.131 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.133 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 => /127.0.0.1:43059] FLUSH
09:53:53.133 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.134 [nioEventLoopGroup-341-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-341-1
09:53:53.134 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 => /127.0.0.1:43059] FLUSH
09:53:53.134 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 :> /127.0.0.1:43059] INACTIVE
09:53:53.134 [nioEventLoopGroup-340-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x98065435, /127.0.0.1:43048 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.136 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.141 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.142 [nioEventLoopGroup-340-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:53.143 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.143 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 => /127.0.0.1:43059] FLUSH
09:53:53.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.144 [nioEventLoopGroup-342-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-342-1
09:53:53.144 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 => /127.0.0.1:43059] FLUSH
09:53:53.144 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 :> /127.0.0.1:43059] INACTIVE
09:53:53.144 [nioEventLoopGroup-340-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a51de82, /127.0.0.1:43050 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.155 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.157 [nioEventLoopGroup-340-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:53.157 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.157 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 => /127.0.0.1:43059] FLUSH
09:53:53.158 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.158 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 => /127.0.0.1:43059] FLUSH
09:53:53.158 [nioEventLoopGroup-343-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-343-1
09:53:53.158 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 :> /127.0.0.1:43059] INACTIVE
09:53:53.158 [nioEventLoopGroup-340-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad0fe639, /127.0.0.1:43056 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.163 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.164 [nioEventLoopGroup-340-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.164 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 => /127.0.0.1:43059] FLUSH
09:53:53.165 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 => /127.0.0.1:43059] FLUSH
09:53:53.165 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.165 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 :> /127.0.0.1:43059] INACTIVE
09:53:53.165 [nioEventLoopGroup-344-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-344-1
09:53:53.165 [nioEventLoopGroup-340-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9581b591, /127.0.0.1:43058 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.177 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.178 [nioEventLoopGroup-340-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:53.178 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.178 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 => /127.0.0.1:43059] FLUSH
09:53:53.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.179 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 => /127.0.0.1:43059] FLUSH
09:53:53.179 [nioEventLoopGroup-345-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-345-1
09:53:53.187 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 :> /127.0.0.1:43059] INACTIVE
09:53:53.187 [nioEventLoopGroup-340-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a9a25aa, /127.0.0.1:43062 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.201 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.202 [nioEventLoopGroup-340-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:53.202 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.202 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 => /127.0.0.1:43059] FLUSH
09:53:53.202 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.202 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 => /127.0.0.1:43059] FLUSH
09:53:53.203 [nioEventLoopGroup-346-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-346-1
09:53:53.203 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 :> /127.0.0.1:43059] INACTIVE
09:53:53.203 [nioEventLoopGroup-340-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4b02cb1, /127.0.0.1:43064 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.208 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.212 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.213 [nioEventLoopGroup-340-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:53.213 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.213 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 => /127.0.0.1:43059] FLUSH
09:53:53.214 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 => /127.0.0.1:43059] FLUSH
09:53:53.214 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.214 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 :> /127.0.0.1:43059] INACTIVE
09:53:53.214 [nioEventLoopGroup-340-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8874b32c, /127.0.0.1:43068 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.214 [nioEventLoopGroup-347-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-347-1
09:53:53.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.231 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.232 [nioEventLoopGroup-340-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:53.232 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.232 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 => /127.0.0.1:43059] FLUSH
09:53:53.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.233 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 => /127.0.0.1:43059] FLUSH
09:53:53.233 [nioEventLoopGroup-348-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-348-1
09:53:53.233 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 :> /127.0.0.1:43059] INACTIVE
09:53:53.233 [nioEventLoopGroup-340-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3280975, /127.0.0.1:43072 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.237 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.237 [nioEventLoopGroup-340-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:53.238 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.238 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 => /127.0.0.1:43059] FLUSH
09:53:53.238 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.238 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 => /127.0.0.1:43059] FLUSH
09:53:53.238 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 :> /127.0.0.1:43059] INACTIVE
09:53:53.238 [nioEventLoopGroup-340-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb09d1a6, /127.0.0.1:43076 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.238 [nioEventLoopGroup-349-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-349-1
09:53:53.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.242 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.242 [nioEventLoopGroup-340-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:53.243 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.243 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 => /127.0.0.1:43059] FLUSH
09:53:53.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.243 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 => /127.0.0.1:43059] FLUSH
09:53:53.243 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 :> /127.0.0.1:43059] INACTIVE
09:53:53.243 [nioEventLoopGroup-340-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x442f3f86, /127.0.0.1:43078 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.243 [nioEventLoopGroup-350-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-350-1
09:53:53.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.246 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.247 [nioEventLoopGroup-340-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:53.247 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.247 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 => /127.0.0.1:43059] FLUSH
09:53:53.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.247 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 => /127.0.0.1:43059] FLUSH
09:53:53.247 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 :> /127.0.0.1:43059] INACTIVE
09:53:53.247 [nioEventLoopGroup-340-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x258e7f36, /127.0.0.1:43080 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.247 [nioEventLoopGroup-351-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-351-1
09:53:53.248 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.250 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.251 [nioEventLoopGroup-340-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:53.251 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.251 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 => /127.0.0.1:43059] FLUSH
09:53:53.252 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.252 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 => /127.0.0.1:43059] FLUSH
09:53:53.252 [nioEventLoopGroup-352-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-352-1
09:53:53.255 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 :> /127.0.0.1:43059] INACTIVE
09:53:53.255 [nioEventLoopGroup-340-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa53ab4b3, /127.0.0.1:43082 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.258 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.260 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 => /127.0.0.1:43059] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.261 [nioEventLoopGroup-340-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.262 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.262 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 => /127.0.0.1:43059] FLUSH
09:53:53.262 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 => /127.0.0.1:43059] FLUSH
09:53:53.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.262 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 :> /127.0.0.1:43059] INACTIVE
09:53:53.262 [nioEventLoopGroup-340-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6e66a964, /127.0.0.1:43084 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.263 [nioEventLoopGroup-353-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-353-1
09:53:53.265 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43059
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:53.266 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.266 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.267 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:53.267 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.267 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.267 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.268 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.268 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.268 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:53.268 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:53.269 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.269 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] FLUSH
09:53:53.270 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status300 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:43059
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:53.270 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.271 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.271 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:53.271 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.271 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 :> /127.0.0.1:44905] FLUSH
09:53:53.271 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 :> /127.0.0.1:44905] INACTIVE
09:53:53.271 [nioEventLoopGroup-324-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb38cd685, /127.0.0.1:32912 :> /127.0.0.1:44905] UNREGISTERED
09:53:53.271 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.271 [nioEventLoopGroup-324-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-15
09:53:53.271 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.272 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.272 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.272 [nioEventLoopGroup-340-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status300"
}
09:53:53.273 [nioEventLoopGroup-340-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 300
}
for request:
{
"method" : "GET",
"path" : "/status300",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:43059" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:53.273 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 300 Multiple Choices
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.273 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 => /127.0.0.1:43059] FLUSH
09:53:53.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:53.275 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 => /127.0.0.1:43059] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43059
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.276 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 => /127.0.0.1:43059] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.276 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 => /127.0.0.1:43059] FLUSH
09:53:53.276 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 => /127.0.0.1:43059] CLOSE()
09:53:53.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.276 [nioEventLoopGroup-354-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-354-1
09:53:53.279 [nioEventLoopGroup-340-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-4
09:53:53.279 [nioEventLoopGroup-340-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-1
09:53:53.279 [nioEventLoopGroup-340-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-8
09:53:53.279 [nioEventLoopGroup-340-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-2
09:53:53.279 [nioEventLoopGroup-340-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-11
09:53:53.279 [nioEventLoopGroup-340-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-5
09:53:53.279 [nioEventLoopGroup-340-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-9
09:53:53.279 [nioEventLoopGroup-340-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-3
09:53:53.279 [nioEventLoopGroup-340-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-7
09:53:53.279 [nioEventLoopGroup-340-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-10
09:53:53.280 [nioEventLoopGroup-340-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-13
09:53:53.280 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 :> /127.0.0.1:43059] INACTIVE
09:53:53.280 [nioEventLoopGroup-340-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-6
09:53:53.280 [nioEventLoopGroup-340-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-12
09:53:53.282 [nioEventLoopGroup-308-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-14
09:53:53.287 [nioEventLoopGroup-308-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-308-15
09:53:53.287 [nioEventLoopGroup-340-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf891b24b, /127.0.0.1:43086 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.632 [MockServer thread for port: 41380] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41380
09:53:53.632 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.636 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.638 [nioEventLoopGroup-356-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.638 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.638 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 => /127.0.0.1:41380] FLUSH
09:53:53.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.639 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 => /127.0.0.1:41380] FLUSH
09:53:53.639 [nioEventLoopGroup-357-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-357-1
09:53:53.639 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 :> /127.0.0.1:41380] INACTIVE
09:53:53.639 [nioEventLoopGroup-356-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x11bb13f3, /127.0.0.1:38764 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.641 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.645 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.647 [nioEventLoopGroup-356-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:53.647 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.648 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 => /127.0.0.1:41380] FLUSH
09:53:53.648 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.648 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 => /127.0.0.1:41380] FLUSH
09:53:53.648 [nioEventLoopGroup-358-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-358-1
09:53:53.648 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 :> /127.0.0.1:41380] INACTIVE
09:53:53.649 [nioEventLoopGroup-356-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d76d603, /127.0.0.1:38766 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.656 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.660 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.661 [nioEventLoopGroup-356-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:53.662 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.662 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 => /127.0.0.1:41380] FLUSH
09:53:53.662 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 => /127.0.0.1:41380] FLUSH
09:53:53.662 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.663 [nioEventLoopGroup-359-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-359-1
09:53:53.663 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 :> /127.0.0.1:41380] INACTIVE
09:53:53.675 [nioEventLoopGroup-356-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd4206a9f, /127.0.0.1:38768 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.700 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.702 [nioEventLoopGroup-356-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.702 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.702 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 => /127.0.0.1:41380] FLUSH
09:53:53.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.703 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 => /127.0.0.1:41380] FLUSH
09:53:53.703 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 :> /127.0.0.1:41380] INACTIVE
09:53:53.703 [nioEventLoopGroup-360-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-360-1
09:53:53.705 [nioEventLoopGroup-356-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1fc33a14, /127.0.0.1:38774 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.737 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.738 [nioEventLoopGroup-356-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:53.738 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.738 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 => /127.0.0.1:41380] FLUSH
09:53:53.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.739 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 => /127.0.0.1:41380] FLUSH
09:53:53.739 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 :> /127.0.0.1:41380] INACTIVE
09:53:53.739 [nioEventLoopGroup-356-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6a657c9a, /127.0.0.1:38780 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.739 [nioEventLoopGroup-361-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-361-1
09:53:53.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.766 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.767 [nioEventLoopGroup-356-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:53.768 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.768 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 => /127.0.0.1:41380] FLUSH
09:53:53.768 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 => /127.0.0.1:41380] FLUSH
09:53:53.768 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.768 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 :> /127.0.0.1:41380] INACTIVE
09:53:53.768 [nioEventLoopGroup-356-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc2a163dd, /127.0.0.1:38786 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.768 [nioEventLoopGroup-362-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-362-1
09:53:53.772 [nioEventLoopGroup-324-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-324-14
09:53:53.776 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.780 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 :> /127.0.0.1:43059] FLUSH
09:53:53.780 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.780 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 :> /127.0.0.1:43059] INACTIVE
09:53:53.780 [nioEventLoopGroup-340-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0e1bf099, /127.0.0.1:43088 :> /127.0.0.1:43059] UNREGISTERED
09:53:53.780 [nioEventLoopGroup-340-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-15
09:53:53.781 [nioEventLoopGroup-356-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:53.781 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.781 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 => /127.0.0.1:41380] FLUSH
09:53:53.781 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.781 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 => /127.0.0.1:41380] FLUSH
09:53:53.781 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 :> /127.0.0.1:41380] INACTIVE
09:53:53.781 [nioEventLoopGroup-363-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-363-1
09:53:53.781 [nioEventLoopGroup-356-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3dd27a48, /127.0.0.1:38790 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.784 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.786 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.787 [nioEventLoopGroup-356-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:53.787 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.787 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 => /127.0.0.1:41380] FLUSH
09:53:53.787 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.787 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 => /127.0.0.1:41380] FLUSH
09:53:53.787 [nioEventLoopGroup-364-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-364-1
09:53:53.787 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 :> /127.0.0.1:41380] INACTIVE
09:53:53.787 [nioEventLoopGroup-356-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x62869875, /127.0.0.1:38792 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.792 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.794 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.795 [nioEventLoopGroup-356-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:53.795 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.795 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 => /127.0.0.1:41380] FLUSH
09:53:53.795 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.795 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 => /127.0.0.1:41380] FLUSH
09:53:53.796 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 :> /127.0.0.1:41380] INACTIVE
09:53:53.796 [nioEventLoopGroup-356-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdde50b71, /127.0.0.1:38794 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.796 [nioEventLoopGroup-365-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-365-1
09:53:53.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.805 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.806 [nioEventLoopGroup-356-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:53.806 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.806 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 => /127.0.0.1:41380] FLUSH
09:53:53.807 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 => /127.0.0.1:41380] FLUSH
09:53:53.807 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 :> /127.0.0.1:41380] INACTIVE
09:53:53.807 [nioEventLoopGroup-356-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd857eabc, /127.0.0.1:38798 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.808 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.808 [nioEventLoopGroup-366-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-366-1
09:53:53.815 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.818 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.819 [nioEventLoopGroup-356-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:53.819 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.819 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 => /127.0.0.1:41380] FLUSH
09:53:53.820 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.820 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 => /127.0.0.1:41380] FLUSH
09:53:53.820 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 :> /127.0.0.1:41380] INACTIVE
09:53:53.820 [nioEventLoopGroup-367-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-367-1
09:53:53.820 [nioEventLoopGroup-356-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b983b22, /127.0.0.1:38800 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.828 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.830 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.832 [nioEventLoopGroup-356-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:53.832 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.832 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 => /127.0.0.1:41380] FLUSH
09:53:53.833 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 => /127.0.0.1:41380] FLUSH
09:53:53.833 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.833 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 :> /127.0.0.1:41380] INACTIVE
09:53:53.833 [nioEventLoopGroup-356-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeea0e3e4, /127.0.0.1:38802 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.833 [nioEventLoopGroup-368-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-368-1
09:53:53.836 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:53.839 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 => /127.0.0.1:41380] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:53.840 [nioEventLoopGroup-356-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:53.840 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.840 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 => /127.0.0.1:41380] FLUSH
09:53:53.841 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.841 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 => /127.0.0.1:41380] FLUSH
09:53:53.841 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 :> /127.0.0.1:41380] INACTIVE
09:53:53.841 [nioEventLoopGroup-356-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70e4bdd1, /127.0.0.1:38804 :> /127.0.0.1:41380] UNREGISTERED
09:53:53.841 [nioEventLoopGroup-369-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-369-1
09:53:53.844 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41380
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:53.844 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.845 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.845 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:53.845 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.845 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.846 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.846 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.846 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.847 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.847 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:53.848 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:53.848 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.848 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] FLUSH
09:53:53.850 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status400 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41380
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:53.850 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.851 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.851 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:53.851 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.852 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.852 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.852 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.852 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.853 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:53.853 [nioEventLoopGroup-356-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status400"
}
09:53:53.853 [nioEventLoopGroup-356-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 400
}
for request:
{
"method" : "GET",
"path" : "/status400",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41380" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:53.853 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 400 Bad Request
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.854 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 => /127.0.0.1:41380] FLUSH
09:53:53.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:53.856 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 => /127.0.0.1:41380] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41380
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:53.857 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 => /127.0.0.1:41380] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:53.857 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 => /127.0.0.1:41380] FLUSH
09:53:53.857 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 => /127.0.0.1:41380] CLOSE()
09:53:53.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:53.857 [nioEventLoopGroup-370-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-370-1
09:53:53.886 [nioEventLoopGroup-356-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-4
09:53:53.886 [nioEventLoopGroup-356-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-3
09:53:53.886 [nioEventLoopGroup-356-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-5
09:53:53.886 [nioEventLoopGroup-356-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-6
09:53:53.886 [nioEventLoopGroup-356-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-2
09:53:53.886 [nioEventLoopGroup-356-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-7
09:53:53.886 [nioEventLoopGroup-356-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-8
09:53:53.886 [nioEventLoopGroup-356-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-9
09:53:53.886 [nioEventLoopGroup-356-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-10
09:53:53.886 [nioEventLoopGroup-356-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-1
09:53:53.886 [nioEventLoopGroup-356-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-11
09:53:53.886 [nioEventLoopGroup-356-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-12
09:53:53.886 [nioEventLoopGroup-356-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-13
09:53:53.887 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 :> /127.0.0.1:41380] INACTIVE
09:53:53.887 [nioEventLoopGroup-356-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa56db033, /127.0.0.1:38806 :> /127.0.0.1:41380] UNREGISTERED
09:53:54.226 [MockServer thread for port: 40273] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40273
09:53:54.227 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.230 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.231 [nioEventLoopGroup-372-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:54.231 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.231 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 => /127.0.0.1:40273] FLUSH
09:53:54.232 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.232 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 => /127.0.0.1:40273] FLUSH
09:53:54.232 [nioEventLoopGroup-373-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-373-1
09:53:54.232 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 :> /127.0.0.1:40273] INACTIVE
09:53:54.232 [nioEventLoopGroup-372-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd3fbaec4, /127.0.0.1:49984 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.237 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.238 [nioEventLoopGroup-372-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:54.239 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.239 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 => /127.0.0.1:40273] FLUSH
09:53:54.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.239 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 => /127.0.0.1:40273] FLUSH
09:53:54.239 [nioEventLoopGroup-374-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-374-1
09:53:54.239 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 :> /127.0.0.1:40273] INACTIVE
09:53:54.239 [nioEventLoopGroup-372-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6446ace, /127.0.0.1:49986 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.240 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.242 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.243 [nioEventLoopGroup-372-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:54.243 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.244 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 => /127.0.0.1:40273] FLUSH
09:53:54.244 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.244 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 => /127.0.0.1:40273] FLUSH
09:53:54.244 [nioEventLoopGroup-375-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-375-1
09:53:54.244 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 :> /127.0.0.1:40273] INACTIVE
09:53:54.244 [nioEventLoopGroup-372-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac842a81, /127.0.0.1:49988 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.245 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.248 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.248 [nioEventLoopGroup-372-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:54.248 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.249 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 => /127.0.0.1:40273] FLUSH
09:53:54.249 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.249 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 => /127.0.0.1:40273] FLUSH
09:53:54.249 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 :> /127.0.0.1:40273] INACTIVE
09:53:54.249 [nioEventLoopGroup-372-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa720717a, /127.0.0.1:49990 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.249 [nioEventLoopGroup-376-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-376-1
09:53:54.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.254 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.255 [nioEventLoopGroup-372-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:54.255 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.255 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 => /127.0.0.1:40273] FLUSH
09:53:54.255 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.256 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 => /127.0.0.1:40273] FLUSH
09:53:54.256 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 :> /127.0.0.1:40273] INACTIVE
09:53:54.256 [nioEventLoopGroup-377-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-377-1
09:53:54.256 [nioEventLoopGroup-372-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6ddc3f3, /127.0.0.1:49992 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.260 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.262 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.266 [nioEventLoopGroup-372-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:54.266 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.266 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 => /127.0.0.1:40273] FLUSH
09:53:54.267 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.267 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 => /127.0.0.1:40273] FLUSH
09:53:54.267 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 :> /127.0.0.1:40273] INACTIVE
09:53:54.267 [nioEventLoopGroup-372-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xced38c9a, /127.0.0.1:49996 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.271 [nioEventLoopGroup-378-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-378-1
09:53:54.273 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.275 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.276 [nioEventLoopGroup-372-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:54.276 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.276 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 => /127.0.0.1:40273] FLUSH
09:53:54.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.276 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 => /127.0.0.1:40273] FLUSH
09:53:54.277 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 :> /127.0.0.1:40273] INACTIVE
09:53:54.277 [nioEventLoopGroup-379-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-379-1
09:53:54.277 [nioEventLoopGroup-372-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa2bd8af, /127.0.0.1:50000 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.277 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.281 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.281 [nioEventLoopGroup-372-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:54.281 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.282 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 => /127.0.0.1:40273] FLUSH
09:53:54.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.282 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 => /127.0.0.1:40273] FLUSH
09:53:54.282 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 :> /127.0.0.1:40273] INACTIVE
09:53:54.282 [nioEventLoopGroup-372-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233c7ec4, /127.0.0.1:50002 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.282 [nioEventLoopGroup-380-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-380-1
09:53:54.285 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.288 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.288 [nioEventLoopGroup-372-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:54.289 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.289 [nioEventLoopGroup-340-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-340-14
09:53:54.289 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 => /127.0.0.1:40273] FLUSH
09:53:54.289 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.290 [nioEventLoopGroup-381-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-381-1
09:53:54.290 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 => /127.0.0.1:40273] FLUSH
09:53:54.290 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 :> /127.0.0.1:40273] INACTIVE
09:53:54.290 [nioEventLoopGroup-372-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79d79ecf, /127.0.0.1:50006 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.293 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.294 [nioEventLoopGroup-372-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:54.294 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.295 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 => /127.0.0.1:40273] FLUSH
09:53:54.295 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 => /127.0.0.1:40273] FLUSH
09:53:54.295 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.296 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 :> /127.0.0.1:40273] INACTIVE
09:53:54.296 [nioEventLoopGroup-382-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-382-1
09:53:54.296 [nioEventLoopGroup-372-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc32cee7b, /127.0.0.1:50008 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.300 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.300 [nioEventLoopGroup-372-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:54.301 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.301 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 => /127.0.0.1:40273] FLUSH
09:53:54.301 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 => /127.0.0.1:40273] FLUSH
09:53:54.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.301 [nioEventLoopGroup-383-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-383-1
09:53:54.302 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 :> /127.0.0.1:40273] INACTIVE
09:53:54.302 [nioEventLoopGroup-372-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x676902d1, /127.0.0.1:50010 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.303 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.306 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.307 [nioEventLoopGroup-372-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:54.307 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.307 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 => /127.0.0.1:40273] FLUSH
09:53:54.307 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.308 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 => /127.0.0.1:40273] FLUSH
09:53:54.308 [nioEventLoopGroup-384-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-384-1
09:53:54.308 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 :> /127.0.0.1:40273] INACTIVE
09:53:54.308 [nioEventLoopGroup-372-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x968750b3, /127.0.0.1:50014 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.313 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:54.316 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 => /127.0.0.1:40273] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:54.317 [nioEventLoopGroup-372-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:54.318 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.318 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 => /127.0.0.1:40273] FLUSH
09:53:54.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.319 [nioEventLoopGroup-385-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-385-1
09:53:54.616 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 :> /127.0.0.1:41380] FLUSH
09:53:54.616 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 :> /127.0.0.1:41380] INACTIVE
09:53:54.616 [nioEventLoopGroup-356-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x547cf5c4, /127.0.0.1:38808 :> /127.0.0.1:41380] UNREGISTERED
09:53:54.616 [nioEventLoopGroup-356-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-15
09:53:54.617 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 => /127.0.0.1:40273] FLUSH
09:53:54.617 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 :> /127.0.0.1:40273] INACTIVE
09:53:54.617 [nioEventLoopGroup-372-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb74ffbf, /127.0.0.1:50018 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.619 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:40273
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:54.619 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.620 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.620 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:54.620 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.620 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.621 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:54.622 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:54.622 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:54.622 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] FLUSH
09:53:54.624 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /status500 HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:40273
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:54.624 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.625 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.626 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.626 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.626 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:54.626 [nioEventLoopGroup-372-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/status500"
}
09:53:54.627 [nioEventLoopGroup-372-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 500
}
for request:
{
"method" : "GET",
"path" : "/status500",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40273" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:54.627 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: keep-alive, 0B
09:53:54.627 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 => /127.0.0.1:40273] FLUSH
09:53:54.628 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:54.632 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 => /127.0.0.1:40273] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40273
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:54.633 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 => /127.0.0.1:40273] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:54.633 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 => /127.0.0.1:40273] FLUSH
09:53:54.638 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 => /127.0.0.1:40273] CLOSE()
09:53:54.638 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:54.638 [nioEventLoopGroup-386-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-386-1
09:53:54.647 [nioEventLoopGroup-372-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-1
09:53:54.647 [nioEventLoopGroup-372-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-7
09:53:54.647 [nioEventLoopGroup-372-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-3
09:53:54.647 [nioEventLoopGroup-372-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-4
09:53:54.647 [nioEventLoopGroup-372-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-5
09:53:54.648 [nioEventLoopGroup-372-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-2
09:53:54.648 [nioEventLoopGroup-372-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-6
09:53:54.648 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 :> /127.0.0.1:40273] INACTIVE
09:53:54.648 [nioEventLoopGroup-372-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-8
09:53:54.648 [nioEventLoopGroup-372-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-9
09:53:54.648 [nioEventLoopGroup-372-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-10
09:53:54.648 [nioEventLoopGroup-372-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-11
09:53:54.648 [nioEventLoopGroup-372-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f27794, /127.0.0.1:50030 :> /127.0.0.1:40273] UNREGISTERED
09:53:54.648 [nioEventLoopGroup-372-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-12
09:53:54.648 [nioEventLoopGroup-372-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-13
09:53:54.888 [nioEventLoopGroup-356-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-356-14
09:53:55.002 [MockServer thread for port: 44114] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44114
09:53:55.003 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.005 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.006 [nioEventLoopGroup-388-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.006 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.007 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 => /127.0.0.1:44114] FLUSH
09:53:55.007 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.007 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 => /127.0.0.1:44114] FLUSH
09:53:55.007 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 :> /127.0.0.1:44114] INACTIVE
09:53:55.007 [nioEventLoopGroup-388-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xec92c624, /127.0.0.1:52688 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.007 [nioEventLoopGroup-389-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-389-1
09:53:55.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.016 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.017 [nioEventLoopGroup-388-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:55.017 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.017 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 => /127.0.0.1:44114] FLUSH
09:53:55.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.018 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 => /127.0.0.1:44114] FLUSH
09:53:55.018 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 :> /127.0.0.1:44114] INACTIVE
09:53:55.018 [nioEventLoopGroup-390-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-390-1
09:53:55.018 [nioEventLoopGroup-388-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdddd4666, /127.0.0.1:52692 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.020 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.027 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.028 [nioEventLoopGroup-388-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:55.029 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.029 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 => /127.0.0.1:44114] FLUSH
09:53:55.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.030 [nioEventLoopGroup-391-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-391-1
09:53:55.030 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 => /127.0.0.1:44114] FLUSH
09:53:55.030 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 :> /127.0.0.1:44114] INACTIVE
09:53:55.030 [nioEventLoopGroup-388-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3522e534, /127.0.0.1:52698 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.033 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.034 [nioEventLoopGroup-388-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.034 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.034 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 => /127.0.0.1:44114] FLUSH
09:53:55.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.036 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 => /127.0.0.1:44114] FLUSH
09:53:55.036 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 :> /127.0.0.1:44114] INACTIVE
09:53:55.036 [nioEventLoopGroup-388-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3d252dae, /127.0.0.1:52700 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.036 [nioEventLoopGroup-392-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-392-1
09:53:55.041 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.044 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.045 [nioEventLoopGroup-388-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:55.045 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.045 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 => /127.0.0.1:44114] FLUSH
09:53:55.045 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.045 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 => /127.0.0.1:44114] FLUSH
09:53:55.045 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 :> /127.0.0.1:44114] INACTIVE
09:53:55.045 [nioEventLoopGroup-388-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x644026f8, /127.0.0.1:52704 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.045 [nioEventLoopGroup-393-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-393-1
09:53:55.048 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.050 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.051 [nioEventLoopGroup-388-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:55.051 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.051 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 => /127.0.0.1:44114] FLUSH
09:53:55.052 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.052 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 => /127.0.0.1:44114] FLUSH
09:53:55.052 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 :> /127.0.0.1:44114] INACTIVE
09:53:55.052 [nioEventLoopGroup-388-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe73c5442, /127.0.0.1:52708 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.052 [nioEventLoopGroup-394-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-394-1
09:53:55.055 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.058 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.059 [nioEventLoopGroup-388-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:55.060 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.060 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 => /127.0.0.1:44114] FLUSH
09:53:55.060 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.060 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 => /127.0.0.1:44114] FLUSH
09:53:55.060 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 :> /127.0.0.1:44114] INACTIVE
09:53:55.060 [nioEventLoopGroup-388-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcefd0959, /127.0.0.1:52712 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.060 [nioEventLoopGroup-395-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-395-1
09:53:55.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.064 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.064 [nioEventLoopGroup-388-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:55.065 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.065 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 => /127.0.0.1:44114] FLUSH
09:53:55.065 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.065 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 => /127.0.0.1:44114] FLUSH
09:53:55.066 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 :> /127.0.0.1:44114] INACTIVE
09:53:55.066 [nioEventLoopGroup-396-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-396-1
09:53:55.074 [nioEventLoopGroup-388-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ebaef19, /127.0.0.1:52716 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.075 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.077 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.078 [nioEventLoopGroup-388-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:55.078 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.078 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 => /127.0.0.1:44114] FLUSH
09:53:55.078 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.078 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 => /127.0.0.1:44114] FLUSH
09:53:55.078 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 :> /127.0.0.1:44114] INACTIVE
09:53:55.078 [nioEventLoopGroup-388-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97c782c, /127.0.0.1:52718 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.079 [nioEventLoopGroup-397-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-397-1
09:53:55.079 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.081 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.082 [nioEventLoopGroup-388-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:55.082 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.082 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 => /127.0.0.1:44114] FLUSH
09:53:55.085 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.085 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 => /127.0.0.1:44114] FLUSH
09:53:55.085 [nioEventLoopGroup-398-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-398-1
09:53:55.085 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 :> /127.0.0.1:44114] INACTIVE
09:53:55.085 [nioEventLoopGroup-388-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02398dfc, /127.0.0.1:52720 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.086 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.089 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.090 [nioEventLoopGroup-388-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:55.090 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.090 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 => /127.0.0.1:44114] FLUSH
09:53:55.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.090 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 => /127.0.0.1:44114] FLUSH
09:53:55.090 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 :> /127.0.0.1:44114] INACTIVE
09:53:55.090 [nioEventLoopGroup-388-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee4ab6c7, /127.0.0.1:52722 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.090 [nioEventLoopGroup-399-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-399-1
09:53:55.096 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.104 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.105 [nioEventLoopGroup-388-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:55.105 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.105 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 => /127.0.0.1:44114] FLUSH
09:53:55.105 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.105 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 => /127.0.0.1:44114] FLUSH
09:53:55.106 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 :> /127.0.0.1:44114] INACTIVE
09:53:55.106 [nioEventLoopGroup-388-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa068b134, /127.0.0.1:52724 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.106 [nioEventLoopGroup-400-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-400-1
09:53:55.111 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.113 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 => /127.0.0.1:44114] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.114 [nioEventLoopGroup-388-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.114 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.114 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 => /127.0.0.1:44114] FLUSH
09:53:55.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.115 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 => /127.0.0.1:44114] FLUSH
09:53:55.115 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 :> /127.0.0.1:44114] INACTIVE
09:53:55.115 [nioEventLoopGroup-401-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-401-1
09:53:55.115 [nioEventLoopGroup-388-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdb62ced6, /127.0.0.1:52728 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.125 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x751f8684, /127.0.0.1:52730 => /127.0.0.1:44114] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:44114
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:55.126 [nioEventLoopGroup-388-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44114" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
09:53:55.126 [nioEventLoopGroup-388-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44114" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:55.127 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x751f8684, /127.0.0.1:52730 => /127.0.0.1:44114] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:55.128 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x751f8684, /127.0.0.1:52730 => /127.0.0.1:44114] FLUSH
09:53:55.139 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c1b986f, /127.0.0.1:52732 => /127.0.0.1:44114] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Host: localhost:44114
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:55.139 [nioEventLoopGroup-388-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44114" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
09:53:55.139 [nioEventLoopGroup-388-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:44114" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:55.140 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c1b986f, /127.0.0.1:52732 => /127.0.0.1:44114] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:55.140 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c1b986f, /127.0.0.1:52732 => /127.0.0.1:44114] FLUSH
09:53:55.141 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:55.145 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 => /127.0.0.1:44114] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44114
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:55.146 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 => /127.0.0.1:44114] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.146 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 => /127.0.0.1:44114] FLUSH
09:53:55.146 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 => /127.0.0.1:44114] CLOSE()
09:53:55.146 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.147 [nioEventLoopGroup-402-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-402-1
09:53:55.148 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 :> /127.0.0.1:40273] FLUSH
09:53:55.148 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 :> /127.0.0.1:40273] INACTIVE
09:53:55.148 [nioEventLoopGroup-372-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0256d590, /127.0.0.1:50032 :> /127.0.0.1:40273] UNREGISTERED
09:53:55.148 [nioEventLoopGroup-372-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-15
09:53:55.160 [nioEventLoopGroup-388-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-3
09:53:55.160 [nioEventLoopGroup-388-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-1
09:53:55.160 [nioEventLoopGroup-388-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-4
09:53:55.160 [nioEventLoopGroup-388-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-11
09:53:55.160 [nioEventLoopGroup-388-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-12
09:53:55.160 [nioEventLoopGroup-388-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-13
09:53:55.160 [nioEventLoopGroup-388-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-2
09:53:55.160 [nioEventLoopGroup-388-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-6
09:53:55.160 [nioEventLoopGroup-388-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-5
09:53:55.160 [nioEventLoopGroup-388-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-8
09:53:55.160 [nioEventLoopGroup-388-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-7
09:53:55.160 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x751f8684, /127.0.0.1:52730 :> /127.0.0.1:44114] INACTIVE
09:53:55.160 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c1b986f, /127.0.0.1:52732 :> /127.0.0.1:44114] INACTIVE
09:53:55.160 [nioEventLoopGroup-388-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-9
09:53:55.160 [nioEventLoopGroup-388-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-10
09:53:55.161 [nioEventLoopGroup-388-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x751f8684, /127.0.0.1:52730 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.161 [nioEventLoopGroup-388-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9c1b986f, /127.0.0.1:52732 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.515 [MockServer thread for port: 41364] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41364
09:53:55.516 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.521 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.523 [nioEventLoopGroup-404-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.523 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.524 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 => /127.0.0.1:41364] FLUSH
09:53:55.524 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 => /127.0.0.1:41364] FLUSH
09:53:55.524 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 :> /127.0.0.1:41364] INACTIVE
09:53:55.524 [nioEventLoopGroup-404-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84f66008, /127.0.0.1:45186 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.524 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.527 [nioEventLoopGroup-405-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-405-1
09:53:55.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.544 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.545 [nioEventLoopGroup-404-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:55.546 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.546 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 => /127.0.0.1:41364] FLUSH
09:53:55.548 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.548 [nioEventLoopGroup-406-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-406-1
09:53:55.549 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 => /127.0.0.1:41364] FLUSH
09:53:55.549 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 :> /127.0.0.1:41364] INACTIVE
09:53:55.549 [nioEventLoopGroup-404-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfe2ce1cd, /127.0.0.1:45190 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.552 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.556 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.557 [nioEventLoopGroup-404-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:55.557 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.558 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 => /127.0.0.1:41364] FLUSH
09:53:55.558 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.558 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 => /127.0.0.1:41364] FLUSH
09:53:55.558 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 :> /127.0.0.1:41364] INACTIVE
09:53:55.558 [nioEventLoopGroup-404-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x35808a7a, /127.0.0.1:45194 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.558 [nioEventLoopGroup-407-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-407-1
09:53:55.560 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.567 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.568 [nioEventLoopGroup-404-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.569 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.569 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 => /127.0.0.1:41364] FLUSH
09:53:55.569 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.569 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 => /127.0.0.1:41364] FLUSH
09:53:55.569 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 :> /127.0.0.1:41364] INACTIVE
09:53:55.569 [nioEventLoopGroup-404-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x23558d89, /127.0.0.1:45198 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.569 [nioEventLoopGroup-408-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-408-1
09:53:55.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.573 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.574 [nioEventLoopGroup-404-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:55.574 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.574 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 => /127.0.0.1:41364] FLUSH
09:53:55.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.575 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 => /127.0.0.1:41364] FLUSH
09:53:55.575 [nioEventLoopGroup-409-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-409-1
09:53:55.575 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 :> /127.0.0.1:41364] INACTIVE
09:53:55.575 [nioEventLoopGroup-404-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x47720ba7, /127.0.0.1:45200 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.602 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.605 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.607 [nioEventLoopGroup-404-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:55.607 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.607 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 => /127.0.0.1:41364] FLUSH
09:53:55.608 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 => /127.0.0.1:41364] FLUSH
09:53:55.608 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 :> /127.0.0.1:41364] INACTIVE
09:53:55.608 [nioEventLoopGroup-404-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x870ddab8, /127.0.0.1:45206 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.608 [nioEventLoopGroup-410-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-410-1
09:53:55.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.619 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.620 [nioEventLoopGroup-404-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:55.620 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.620 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 => /127.0.0.1:41364] FLUSH
09:53:55.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.620 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 => /127.0.0.1:41364] FLUSH
09:53:55.621 [nioEventLoopGroup-411-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-411-1
09:53:55.621 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 :> /127.0.0.1:41364] INACTIVE
09:53:55.621 [nioEventLoopGroup-404-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7b87c32f, /127.0.0.1:45210 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.629 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.635 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.636 [nioEventLoopGroup-404-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:55.636 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.636 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 => /127.0.0.1:41364] FLUSH
09:53:55.637 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 => /127.0.0.1:41364] FLUSH
09:53:55.637 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 :> /127.0.0.1:41364] INACTIVE
09:53:55.637 [nioEventLoopGroup-404-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2f6d2f46, /127.0.0.1:45214 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.641 [nioEventLoopGroup-412-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-412-1
09:53:55.642 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.645 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.645 [nioEventLoopGroup-404-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:55.646 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.646 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 => /127.0.0.1:41364] FLUSH
09:53:55.648 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 => /127.0.0.1:41364] FLUSH
09:53:55.648 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 :> /127.0.0.1:41364] INACTIVE
09:53:55.648 [nioEventLoopGroup-404-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6aa52fdd, /127.0.0.1:45216 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.649 [nioEventLoopGroup-372-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-372-14
09:53:55.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.650 [nioEventLoopGroup-413-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-413-1
09:53:55.660 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 :> /127.0.0.1:44114] FLUSH
09:53:55.660 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 :> /127.0.0.1:44114] INACTIVE
09:53:55.660 [nioEventLoopGroup-388-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x55650159, /127.0.0.1:52736 :> /127.0.0.1:44114] UNREGISTERED
09:53:55.660 [nioEventLoopGroup-388-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-16
09:53:55.661 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.665 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.665 [nioEventLoopGroup-404-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:55.666 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.666 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 => /127.0.0.1:41364] FLUSH
09:53:55.666 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.667 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 => /127.0.0.1:41364] FLUSH
09:53:55.667 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 :> /127.0.0.1:41364] INACTIVE
09:53:55.667 [nioEventLoopGroup-404-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x37521400, /127.0.0.1:45220 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.667 [nioEventLoopGroup-414-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-414-1
09:53:55.676 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.678 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.678 [nioEventLoopGroup-404-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:55.678 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.678 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 => /127.0.0.1:41364] FLUSH
09:53:55.679 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 => /127.0.0.1:41364] FLUSH
09:53:55.679 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.679 [nioEventLoopGroup-415-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-415-1
09:53:55.679 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 :> /127.0.0.1:41364] INACTIVE
09:53:55.679 [nioEventLoopGroup-404-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x702feb65, /127.0.0.1:45222 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.682 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.683 [nioEventLoopGroup-404-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:55.683 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.683 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 => /127.0.0.1:41364] FLUSH
09:53:55.684 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.684 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 => /127.0.0.1:41364] FLUSH
09:53:55.684 [nioEventLoopGroup-416-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-416-1
09:53:55.684 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 :> /127.0.0.1:41364] INACTIVE
09:53:55.684 [nioEventLoopGroup-404-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x743cf968, /127.0.0.1:45224 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.685 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:55.688 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 => /127.0.0.1:41364] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:55.689 [nioEventLoopGroup-404-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:55.690 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.690 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 => /127.0.0.1:41364] FLUSH
09:53:55.690 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.690 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 => /127.0.0.1:41364] FLUSH
09:53:55.690 [nioEventLoopGroup-417-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-417-1
09:53:55.690 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 :> /127.0.0.1:41364] INACTIVE
09:53:55.690 [nioEventLoopGroup-404-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1bfaad4c, /127.0.0.1:45226 :> /127.0.0.1:41364] UNREGISTERED
09:53:55.694 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41364
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:55.695 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41364" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
09:53:55.696 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41364" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:55.696 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:55.696 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] FLUSH
09:53:55.701 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET / HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41364
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:55.701 [nioEventLoopGroup-404-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41364" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/"
}
09:53:55.701 [nioEventLoopGroup-404-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41364" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:55.702 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:55.702 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 => /127.0.0.1:41364] FLUSH
09:53:55.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:55.706 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 => /127.0.0.1:41364] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41364
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:55.706 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 => /127.0.0.1:41364] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:55.707 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 => /127.0.0.1:41364] FLUSH
09:53:55.707 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 => /127.0.0.1:41364] CLOSE()
09:53:55.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:55.707 [nioEventLoopGroup-418-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-418-1
09:53:55.726 [nioEventLoopGroup-404-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-11
09:53:55.726 [nioEventLoopGroup-404-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-12
09:53:55.726 [nioEventLoopGroup-404-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-1
09:53:55.726 [nioEventLoopGroup-404-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-3
09:53:55.726 [nioEventLoopGroup-404-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-2
09:53:55.726 [nioEventLoopGroup-404-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-13
09:53:55.726 [nioEventLoopGroup-404-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-6
09:53:55.726 [nioEventLoopGroup-404-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-4
09:53:55.726 [nioEventLoopGroup-404-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-5
09:53:55.726 [nioEventLoopGroup-404-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-8
09:53:55.726 [nioEventLoopGroup-404-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-10
09:53:55.726 [nioEventLoopGroup-404-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-9
09:53:55.726 [nioEventLoopGroup-404-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-7
09:53:55.726 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 :> /127.0.0.1:41364] INACTIVE
09:53:55.727 [nioEventLoopGroup-404-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0951f5c8, /127.0.0.1:45228 :> /127.0.0.1:41364] UNREGISTERED
09:53:56.080 [MockServer thread for port: 41390] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41390
09:53:56.081 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.085 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.086 [nioEventLoopGroup-420-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.086 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.087 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 => /127.0.0.1:41390] FLUSH
09:53:56.087 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.087 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 => /127.0.0.1:41390] FLUSH
09:53:56.087 [nioEventLoopGroup-421-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-421-1
09:53:56.088 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 :> /127.0.0.1:41390] INACTIVE
09:53:56.088 [nioEventLoopGroup-420-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b78b911, /127.0.0.1:48948 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.092 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.096 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.098 [nioEventLoopGroup-420-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:56.098 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.098 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 => /127.0.0.1:41390] FLUSH
09:53:56.099 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.099 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 => /127.0.0.1:41390] FLUSH
09:53:56.099 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 :> /127.0.0.1:41390] INACTIVE
09:53:56.099 [nioEventLoopGroup-422-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-422-1
09:53:56.099 [nioEventLoopGroup-420-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5195d224, /127.0.0.1:48950 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.101 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.105 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.107 [nioEventLoopGroup-420-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:56.107 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.107 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 => /127.0.0.1:41390] FLUSH
09:53:56.108 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.108 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 => /127.0.0.1:41390] FLUSH
09:53:56.108 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 :> /127.0.0.1:41390] INACTIVE
09:53:56.108 [nioEventLoopGroup-420-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa71b2511, /127.0.0.1:48954 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.108 [nioEventLoopGroup-423-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-423-1
09:53:56.109 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.113 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.114 [nioEventLoopGroup-420-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.114 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.115 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 => /127.0.0.1:41390] FLUSH
09:53:56.115 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 => /127.0.0.1:41390] FLUSH
09:53:56.115 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.115 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 :> /127.0.0.1:41390] INACTIVE
09:53:56.115 [nioEventLoopGroup-420-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd87ae98f, /127.0.0.1:48958 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.115 [nioEventLoopGroup-424-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-424-1
09:53:56.117 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.120 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.121 [nioEventLoopGroup-420-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:56.122 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.122 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 => /127.0.0.1:41390] FLUSH
09:53:56.122 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.122 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 => /127.0.0.1:41390] FLUSH
09:53:56.122 [nioEventLoopGroup-425-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-425-1
09:53:56.123 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 :> /127.0.0.1:41390] INACTIVE
09:53:56.123 [nioEventLoopGroup-420-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7900623e, /127.0.0.1:48960 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.125 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.128 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.130 [nioEventLoopGroup-420-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:56.130 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.131 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 => /127.0.0.1:41390] FLUSH
09:53:56.131 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 => /127.0.0.1:41390] FLUSH
09:53:56.131 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 :> /127.0.0.1:41390] INACTIVE
09:53:56.131 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.131 [nioEventLoopGroup-420-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe564cacb, /127.0.0.1:48964 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.131 [nioEventLoopGroup-426-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-426-1
09:53:56.145 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.148 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.149 [nioEventLoopGroup-420-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:56.149 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.149 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 => /127.0.0.1:41390] FLUSH
09:53:56.149 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.149 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 => /127.0.0.1:41390] FLUSH
09:53:56.150 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 :> /127.0.0.1:41390] INACTIVE
09:53:56.150 [nioEventLoopGroup-420-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd55e8d3c, /127.0.0.1:48968 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.150 [nioEventLoopGroup-427-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-427-1
09:53:56.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.158 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.159 [nioEventLoopGroup-420-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:56.159 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.159 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 => /127.0.0.1:41390] FLUSH
09:53:56.160 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.160 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 => /127.0.0.1:41390] FLUSH
09:53:56.160 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 :> /127.0.0.1:41390] INACTIVE
09:53:56.160 [nioEventLoopGroup-428-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-428-1
09:53:56.161 [nioEventLoopGroup-420-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a7f176b, /127.0.0.1:48972 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.162 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.163 [nioEventLoopGroup-388-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-15
09:53:56.163 [nioEventLoopGroup-388-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-388-14
09:53:56.167 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.168 [nioEventLoopGroup-420-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:56.168 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.168 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 => /127.0.0.1:41390] FLUSH
09:53:56.168 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.168 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 => /127.0.0.1:41390] FLUSH
09:53:56.168 [nioEventLoopGroup-429-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-429-1
09:53:56.168 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 :> /127.0.0.1:41390] INACTIVE
09:53:56.169 [nioEventLoopGroup-420-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xab7224f2, /127.0.0.1:48976 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.172 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.173 [nioEventLoopGroup-420-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:56.173 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.173 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 => /127.0.0.1:41390] FLUSH
09:53:56.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.174 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 => /127.0.0.1:41390] FLUSH
09:53:56.174 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 :> /127.0.0.1:41390] INACTIVE
09:53:56.174 [nioEventLoopGroup-430-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-430-1
09:53:56.174 [nioEventLoopGroup-420-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x71a25f17, /127.0.0.1:48978 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.175 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.177 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.177 [nioEventLoopGroup-420-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:56.178 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.178 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 => /127.0.0.1:41390] FLUSH
09:53:56.178 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.178 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 => /127.0.0.1:41390] FLUSH
09:53:56.178 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 :> /127.0.0.1:41390] INACTIVE
09:53:56.178 [nioEventLoopGroup-431-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-431-1
09:53:56.178 [nioEventLoopGroup-420-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9aaa237d, /127.0.0.1:48980 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.185 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.188 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.189 [nioEventLoopGroup-420-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:56.189 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.189 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 => /127.0.0.1:41390] FLUSH
09:53:56.189 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.190 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 => /127.0.0.1:41390] FLUSH
09:53:56.190 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 :> /127.0.0.1:41390] INACTIVE
09:53:56.190 [nioEventLoopGroup-420-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcfe3e3a0, /127.0.0.1:48984 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.190 [nioEventLoopGroup-432-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-432-1
09:53:56.193 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.195 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 => /127.0.0.1:41390] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.196 [nioEventLoopGroup-420-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.197 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.197 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 => /127.0.0.1:41390] FLUSH
09:53:56.197 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.198 [nioEventLoopGroup-433-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-433-1
09:53:56.198 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 => /127.0.0.1:41390] FLUSH
09:53:56.198 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 :> /127.0.0.1:41390] INACTIVE
09:53:56.198 [nioEventLoopGroup-420-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dc83268, /127.0.0.1:48986 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.210 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b550a55, /127.0.0.1:48990 => /127.0.0.1:41390] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:41390
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:56.210 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.210 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.211 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:56.211 [nioEventLoopGroup-420-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
09:53:56.211 [nioEventLoopGroup-420-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:56.212 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b550a55, /127.0.0.1:48990 => /127.0.0.1:41390] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:56.212 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b550a55, /127.0.0.1:48990 => /127.0.0.1:41390] FLUSH
09:53:56.218 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0536e19, /127.0.0.1:48992 => /127.0.0.1:41390] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:41390
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:56.218 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.218 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.219 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:56.219 [nioEventLoopGroup-420-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
09:53:56.220 [nioEventLoopGroup-420-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:41390" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:56.220 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0536e19, /127.0.0.1:48992 => /127.0.0.1:41390] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:56.220 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0536e19, /127.0.0.1:48992 => /127.0.0.1:41390] FLUSH
09:53:56.221 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:56.225 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 => /127.0.0.1:41390] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41390
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:56.226 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 => /127.0.0.1:41390] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.226 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 => /127.0.0.1:41390] FLUSH
09:53:56.226 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 => /127.0.0.1:41390] CLOSE()
09:53:56.226 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.227 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 :> /127.0.0.1:41364] FLUSH
09:53:56.227 [nioEventLoopGroup-434-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-434-1
09:53:56.228 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 :> /127.0.0.1:41364] INACTIVE
09:53:56.228 [nioEventLoopGroup-404-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe6e90927, /127.0.0.1:45232 :> /127.0.0.1:41364] UNREGISTERED
09:53:56.228 [nioEventLoopGroup-404-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-15
09:53:56.257 [nioEventLoopGroup-420-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-11
09:53:56.257 [nioEventLoopGroup-420-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-7
09:53:56.257 [nioEventLoopGroup-420-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-2
09:53:56.257 [nioEventLoopGroup-420-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-3
09:53:56.257 [nioEventLoopGroup-420-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-12
09:53:56.257 [nioEventLoopGroup-420-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-9
09:53:56.257 [nioEventLoopGroup-420-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-4
09:53:56.257 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0536e19, /127.0.0.1:48992 :> /127.0.0.1:41390] INACTIVE
09:53:56.257 [nioEventLoopGroup-420-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-5
09:53:56.257 [nioEventLoopGroup-420-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-6
09:53:56.257 [nioEventLoopGroup-420-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-10
09:53:56.257 [nioEventLoopGroup-420-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-13
09:53:56.257 [nioEventLoopGroup-420-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0536e19, /127.0.0.1:48992 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.259 [nioEventLoopGroup-420-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-1
09:53:56.259 [nioEventLoopGroup-420-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-8
09:53:56.259 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b550a55, /127.0.0.1:48990 :> /127.0.0.1:41390] INACTIVE
09:53:56.261 [nioEventLoopGroup-420-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6b550a55, /127.0.0.1:48990 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.608 [MockServer thread for port: 36109] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36109
09:53:56.609 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.611 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.612 [nioEventLoopGroup-436-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.612 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.612 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 => /127.0.0.1:36109] FLUSH
09:53:56.613 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.613 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 => /127.0.0.1:36109] FLUSH
09:53:56.613 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 :> /127.0.0.1:36109] INACTIVE
09:53:56.613 [nioEventLoopGroup-436-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a1e50df, /127.0.0.1:45778 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.614 [nioEventLoopGroup-437-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-437-1
09:53:56.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.616 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.616 [nioEventLoopGroup-436-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:56.616 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.617 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 => /127.0.0.1:36109] FLUSH
09:53:56.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.617 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 => /127.0.0.1:36109] FLUSH
09:53:56.617 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 :> /127.0.0.1:36109] INACTIVE
09:53:56.617 [nioEventLoopGroup-436-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4fc6798e, /127.0.0.1:45780 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.617 [nioEventLoopGroup-438-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-438-1
09:53:56.618 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.619 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.620 [nioEventLoopGroup-436-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:56.620 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.620 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 => /127.0.0.1:36109] FLUSH
09:53:56.620 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.620 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 => /127.0.0.1:36109] FLUSH
09:53:56.620 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 :> /127.0.0.1:36109] INACTIVE
09:53:56.620 [nioEventLoopGroup-436-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x70ae2f0d, /127.0.0.1:45782 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.620 [nioEventLoopGroup-439-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-439-1
09:53:56.621 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.623 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.624 [nioEventLoopGroup-436-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.624 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.624 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 => /127.0.0.1:36109] FLUSH
09:53:56.624 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.624 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 => /127.0.0.1:36109] FLUSH
09:53:56.624 [nioEventLoopGroup-440-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-440-1
09:53:56.624 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 :> /127.0.0.1:36109] INACTIVE
09:53:56.624 [nioEventLoopGroup-436-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeff6e594, /127.0.0.1:45784 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.627 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.629 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.630 [nioEventLoopGroup-436-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:56.630 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.630 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 => /127.0.0.1:36109] FLUSH
09:53:56.631 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.631 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 => /127.0.0.1:36109] FLUSH
09:53:56.631 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 :> /127.0.0.1:36109] INACTIVE
09:53:56.631 [nioEventLoopGroup-436-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x929bab62, /127.0.0.1:45786 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.631 [nioEventLoopGroup-441-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-441-1
09:53:56.632 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.634 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.635 [nioEventLoopGroup-436-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:56.635 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.635 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 => /127.0.0.1:36109] FLUSH
09:53:56.635 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.636 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 => /127.0.0.1:36109] FLUSH
09:53:56.636 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 :> /127.0.0.1:36109] INACTIVE
09:53:56.636 [nioEventLoopGroup-442-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-442-1
09:53:56.636 [nioEventLoopGroup-436-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf48f7413, /127.0.0.1:45788 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.636 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.638 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.639 [nioEventLoopGroup-436-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:56.639 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.639 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 => /127.0.0.1:36109] FLUSH
09:53:56.639 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.639 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 => /127.0.0.1:36109] FLUSH
09:53:56.640 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 :> /127.0.0.1:36109] INACTIVE
09:53:56.640 [nioEventLoopGroup-436-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbd077b71, /127.0.0.1:45790 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.640 [nioEventLoopGroup-443-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-443-1
09:53:56.640 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.642 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.642 [nioEventLoopGroup-436-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:56.642 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.643 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 => /127.0.0.1:36109] FLUSH
09:53:56.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.643 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 => /127.0.0.1:36109] FLUSH
09:53:56.643 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 :> /127.0.0.1:36109] INACTIVE
09:53:56.643 [nioEventLoopGroup-436-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf4a5d93f, /127.0.0.1:45792 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.643 [nioEventLoopGroup-444-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-444-1
09:53:56.643 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.645 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.645 [nioEventLoopGroup-436-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:56.646 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.646 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 => /127.0.0.1:36109] FLUSH
09:53:56.646 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.646 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 => /127.0.0.1:36109] FLUSH
09:53:56.646 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 :> /127.0.0.1:36109] INACTIVE
09:53:56.646 [nioEventLoopGroup-445-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-445-1
09:53:56.646 [nioEventLoopGroup-436-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x45620ec5, /127.0.0.1:45794 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.647 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.648 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.649 [nioEventLoopGroup-436-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:56.649 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.649 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 => /127.0.0.1:36109] FLUSH
09:53:56.649 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.649 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 => /127.0.0.1:36109] FLUSH
09:53:56.649 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 :> /127.0.0.1:36109] INACTIVE
09:53:56.649 [nioEventLoopGroup-436-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb2feb834, /127.0.0.1:45796 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.649 [nioEventLoopGroup-446-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-446-1
09:53:56.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.651 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.652 [nioEventLoopGroup-436-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:56.652 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.652 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 => /127.0.0.1:36109] FLUSH
09:53:56.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.652 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 => /127.0.0.1:36109] FLUSH
09:53:56.652 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 :> /127.0.0.1:36109] INACTIVE
09:53:56.652 [nioEventLoopGroup-436-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9a8ef12, /127.0.0.1:45798 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.652 [nioEventLoopGroup-447-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-447-1
09:53:56.665 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.666 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.667 [nioEventLoopGroup-436-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:56.667 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.667 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 => /127.0.0.1:36109] FLUSH
09:53:56.668 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.668 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 => /127.0.0.1:36109] FLUSH
09:53:56.668 [nioEventLoopGroup-448-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-448-1
09:53:56.668 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 :> /127.0.0.1:36109] INACTIVE
09:53:56.668 [nioEventLoopGroup-436-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x007c204e, /127.0.0.1:45800 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.668 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:56.670 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 => /127.0.0.1:36109] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:56.671 [nioEventLoopGroup-436-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:56.671 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.672 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 => /127.0.0.1:36109] FLUSH
09:53:56.672 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.672 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 => /127.0.0.1:36109] FLUSH
09:53:56.672 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 :> /127.0.0.1:36109] INACTIVE
09:53:56.672 [nioEventLoopGroup-436-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc01d6fae, /127.0.0.1:45802 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.672 [nioEventLoopGroup-449-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-449-1
09:53:56.674 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36109
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:56.674 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.674 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.675 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:56.675 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
09:53:56.675 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:56.675 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:56.675 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] FLUSH
09:53:56.677 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:36109
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:56.677 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.677 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:56.677 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:56.677 [nioEventLoopGroup-436-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo"
}
09:53:56.677 [nioEventLoopGroup-436-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:36109" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:56.678 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:53:56.678 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 => /127.0.0.1:36109] FLUSH
09:53:56.679 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:56.680 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 => /127.0.0.1:36109] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36109
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:56.680 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 => /127.0.0.1:36109] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:56.680 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 => /127.0.0.1:36109] FLUSH
09:53:56.680 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 => /127.0.0.1:36109] CLOSE()
09:53:56.681 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:56.681 [nioEventLoopGroup-450-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-450-1
09:53:56.682 [nioEventLoopGroup-436-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-1
09:53:56.682 [nioEventLoopGroup-436-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-2
09:53:56.682 [nioEventLoopGroup-436-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-4
09:53:56.682 [nioEventLoopGroup-436-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-7
09:53:56.682 [nioEventLoopGroup-436-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-6
09:53:56.682 [nioEventLoopGroup-436-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-13
09:53:56.682 [nioEventLoopGroup-436-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-11
09:53:56.682 [nioEventLoopGroup-436-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-3
09:53:56.682 [nioEventLoopGroup-436-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-8
09:53:56.682 [nioEventLoopGroup-436-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-9
09:53:56.682 [nioEventLoopGroup-436-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-12
09:53:56.682 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 :> /127.0.0.1:36109] INACTIVE
09:53:56.682 [nioEventLoopGroup-436-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-10
09:53:56.682 [nioEventLoopGroup-436-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-5
09:53:56.682 [nioEventLoopGroup-436-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c660bb7, /127.0.0.1:45804 :> /127.0.0.1:36109] UNREGISTERED
09:53:56.727 [nioEventLoopGroup-404-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-404-14
09:53:56.757 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 :> /127.0.0.1:41390] FLUSH
09:53:56.757 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 :> /127.0.0.1:41390] INACTIVE
09:53:56.757 [nioEventLoopGroup-420-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e380e94, /127.0.0.1:48994 :> /127.0.0.1:41390] UNREGISTERED
09:53:56.757 [nioEventLoopGroup-420-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-16
09:53:57.034 [MockServer thread for port: 43230] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 43230
09:53:57.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.037 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.038 [nioEventLoopGroup-452-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.038 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.038 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 => /127.0.0.1:43230] FLUSH
09:53:57.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.039 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 => /127.0.0.1:43230] FLUSH
09:53:57.039 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 :> /127.0.0.1:43230] INACTIVE
09:53:57.039 [nioEventLoopGroup-453-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-453-1
09:53:57.039 [nioEventLoopGroup-452-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf67983e9, /127.0.0.1:51534 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.040 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.042 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.043 [nioEventLoopGroup-452-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:57.043 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.043 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 => /127.0.0.1:43230] FLUSH
09:53:57.043 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.044 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 => /127.0.0.1:43230] FLUSH
09:53:57.044 [nioEventLoopGroup-454-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-454-1
09:53:57.044 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 :> /127.0.0.1:43230] INACTIVE
09:53:57.044 [nioEventLoopGroup-452-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x629a07d0, /127.0.0.1:51536 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.044 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.046 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.046 [nioEventLoopGroup-452-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:57.047 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.047 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 => /127.0.0.1:43230] FLUSH
09:53:57.047 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.047 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 => /127.0.0.1:43230] FLUSH
09:53:57.047 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 :> /127.0.0.1:43230] INACTIVE
09:53:57.047 [nioEventLoopGroup-452-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2af797cf, /127.0.0.1:51538 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.047 [nioEventLoopGroup-455-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-455-1
09:53:57.048 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.050 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.051 [nioEventLoopGroup-452-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.051 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.051 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 => /127.0.0.1:43230] FLUSH
09:53:57.051 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.051 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 => /127.0.0.1:43230] FLUSH
09:53:57.051 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 :> /127.0.0.1:43230] INACTIVE
09:53:57.051 [nioEventLoopGroup-452-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9a77c3ea, /127.0.0.1:51540 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.051 [nioEventLoopGroup-456-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-456-1
09:53:57.054 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.056 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.057 [nioEventLoopGroup-452-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:57.057 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.057 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 => /127.0.0.1:43230] FLUSH
09:53:57.057 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.057 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 => /127.0.0.1:43230] FLUSH
09:53:57.057 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 :> /127.0.0.1:43230] INACTIVE
09:53:57.057 [nioEventLoopGroup-457-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-457-1
09:53:57.058 [nioEventLoopGroup-452-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36e0b8cd, /127.0.0.1:51542 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.058 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.060 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.061 [nioEventLoopGroup-452-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:57.061 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.061 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 => /127.0.0.1:43230] FLUSH
09:53:57.061 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.061 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 => /127.0.0.1:43230] FLUSH
09:53:57.061 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 :> /127.0.0.1:43230] INACTIVE
09:53:57.061 [nioEventLoopGroup-458-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-458-1
09:53:57.061 [nioEventLoopGroup-452-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cc0ec67, /127.0.0.1:51544 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.062 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.064 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.065 [nioEventLoopGroup-452-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:57.066 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.066 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 => /127.0.0.1:43230] FLUSH
09:53:57.075 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.075 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 => /127.0.0.1:43230] FLUSH
09:53:57.075 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 :> /127.0.0.1:43230] INACTIVE
09:53:57.075 [nioEventLoopGroup-459-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-459-1
09:53:57.076 [nioEventLoopGroup-452-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x850efdfc, /127.0.0.1:51546 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.076 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.079 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.079 [nioEventLoopGroup-452-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:57.079 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.079 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 => /127.0.0.1:43230] FLUSH
09:53:57.080 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.080 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 => /127.0.0.1:43230] FLUSH
09:53:57.080 [nioEventLoopGroup-460-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-460-1
09:53:57.080 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 :> /127.0.0.1:43230] INACTIVE
09:53:57.080 [nioEventLoopGroup-452-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ab96ce1, /127.0.0.1:51548 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.085 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.087 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.088 [nioEventLoopGroup-452-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:57.088 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.088 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 => /127.0.0.1:43230] FLUSH
09:53:57.088 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.088 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 => /127.0.0.1:43230] FLUSH
09:53:57.089 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 :> /127.0.0.1:43230] INACTIVE
09:53:57.089 [nioEventLoopGroup-452-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc857a135, /127.0.0.1:51550 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.089 [nioEventLoopGroup-461-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-461-1
09:53:57.090 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.091 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.092 [nioEventLoopGroup-452-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:57.092 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.092 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 => /127.0.0.1:43230] FLUSH
09:53:57.093 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.093 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 => /127.0.0.1:43230] FLUSH
09:53:57.093 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 :> /127.0.0.1:43230] INACTIVE
09:53:57.093 [nioEventLoopGroup-452-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf019f451, /127.0.0.1:51552 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.093 [nioEventLoopGroup-462-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-462-1
09:53:57.098 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.101 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.102 [nioEventLoopGroup-452-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:57.102 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.102 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 => /127.0.0.1:43230] FLUSH
09:53:57.103 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.103 [nioEventLoopGroup-463-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-463-1
09:53:57.103 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 => /127.0.0.1:43230] FLUSH
09:53:57.103 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 :> /127.0.0.1:43230] INACTIVE
09:53:57.103 [nioEventLoopGroup-452-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3ed82d3, /127.0.0.1:51554 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.113 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.116 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.117 [nioEventLoopGroup-452-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:57.117 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.117 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 => /127.0.0.1:43230] FLUSH
09:53:57.118 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 => /127.0.0.1:43230] FLUSH
09:53:57.118 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.119 [nioEventLoopGroup-464-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-464-1
09:53:57.119 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 :> /127.0.0.1:43230] INACTIVE
09:53:57.119 [nioEventLoopGroup-452-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe61da869, /127.0.0.1:51556 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.124 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.126 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 => /127.0.0.1:43230] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.126 [nioEventLoopGroup-452-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.127 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.127 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 => /127.0.0.1:43230] FLUSH
09:53:57.127 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.127 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 => /127.0.0.1:43230] FLUSH
09:53:57.127 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 :> /127.0.0.1:43230] INACTIVE
09:53:57.127 [nioEventLoopGroup-452-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xea81a5bd, /127.0.0.1:51558 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.127 [nioEventLoopGroup-465-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-465-1
09:53:57.136 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e2d2b40, /127.0.0.1:51560 => /127.0.0.1:43230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:43230
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:57.137 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.137 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.137 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:57.137 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.137 [nioEventLoopGroup-452-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
09:53:57.138 [nioEventLoopGroup-452-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:57.138 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e2d2b40, /127.0.0.1:51560 => /127.0.0.1:43230] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
09:53:57.138 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e2d2b40, /127.0.0.1:51560 => /127.0.0.1:43230] FLUSH
09:53:57.174 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a20e7a3, /127.0.0.1:51562 => /127.0.0.1:43230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Host: localhost:43230
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:57.175 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.175 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.175 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:57.175 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.176 [nioEventLoopGroup-452-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
09:53:57.176 [nioEventLoopGroup-452-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:43230" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:57.176 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a20e7a3, /127.0.0.1:51562 => /127.0.0.1:43230] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
09:53:57.176 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a20e7a3, /127.0.0.1:51562 => /127.0.0.1:43230] FLUSH
09:53:57.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:57.182 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 :> /127.0.0.1:36109] FLUSH
09:53:57.182 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 :> /127.0.0.1:36109] INACTIVE
09:53:57.182 [nioEventLoopGroup-436-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf172603e, /127.0.0.1:45806 :> /127.0.0.1:36109] UNREGISTERED
09:53:57.182 [nioEventLoopGroup-436-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-15
09:53:57.183 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 => /127.0.0.1:43230] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:43230
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:57.183 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 => /127.0.0.1:43230] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.183 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 => /127.0.0.1:43230] FLUSH
09:53:57.184 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 => /127.0.0.1:43230] CLOSE()
09:53:57.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.184 [nioEventLoopGroup-466-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-466-1
09:53:57.192 [nioEventLoopGroup-452-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-2
09:53:57.192 [nioEventLoopGroup-452-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-1
09:53:57.192 [nioEventLoopGroup-452-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-10
09:53:57.192 [nioEventLoopGroup-452-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-3
09:53:57.192 [nioEventLoopGroup-452-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-4
09:53:57.192 [nioEventLoopGroup-452-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-5
09:53:57.192 [nioEventLoopGroup-452-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-6
09:53:57.192 [nioEventLoopGroup-452-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-7
09:53:57.192 [nioEventLoopGroup-452-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-8
09:53:57.192 [nioEventLoopGroup-452-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-9
09:53:57.192 [nioEventLoopGroup-452-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-11
09:53:57.192 [nioEventLoopGroup-452-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-12
09:53:57.193 [nioEventLoopGroup-452-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-13
09:53:57.193 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e2d2b40, /127.0.0.1:51560 :> /127.0.0.1:43230] INACTIVE
09:53:57.193 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a20e7a3, /127.0.0.1:51562 :> /127.0.0.1:43230] INACTIVE
09:53:57.196 [nioEventLoopGroup-452-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7e2d2b40, /127.0.0.1:51560 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.196 [nioEventLoopGroup-452-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2a20e7a3, /127.0.0.1:51562 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.262 [nioEventLoopGroup-420-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-14
09:53:57.262 [nioEventLoopGroup-420-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-420-15
09:53:57.540 [MockServer thread for port: 38108] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38108
09:53:57.540 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.542 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.543 [nioEventLoopGroup-468-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.543 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.543 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 => /127.0.0.1:38108] FLUSH
09:53:57.544 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 => /127.0.0.1:38108] FLUSH
09:53:57.544 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.544 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 :> /127.0.0.1:38108] INACTIVE
09:53:57.544 [nioEventLoopGroup-468-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x07561400, /127.0.0.1:54484 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.544 [nioEventLoopGroup-469-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-469-1
09:53:57.545 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.547 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.548 [nioEventLoopGroup-468-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:57.548 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.549 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 => /127.0.0.1:38108] FLUSH
09:53:57.549 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.549 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 => /127.0.0.1:38108] FLUSH
09:53:57.549 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 :> /127.0.0.1:38108] INACTIVE
09:53:57.549 [nioEventLoopGroup-468-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x84a7f878, /127.0.0.1:54486 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.549 [nioEventLoopGroup-470-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-470-1
09:53:57.550 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.552 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.553 [nioEventLoopGroup-468-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:57.553 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.553 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 => /127.0.0.1:38108] FLUSH
09:53:57.553 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.553 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 => /127.0.0.1:38108] FLUSH
09:53:57.553 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 :> /127.0.0.1:38108] INACTIVE
09:53:57.553 [nioEventLoopGroup-468-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3880bb7, /127.0.0.1:54488 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.553 [nioEventLoopGroup-471-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-471-1
09:53:57.554 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.556 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.556 [nioEventLoopGroup-468-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.557 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.557 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 => /127.0.0.1:38108] FLUSH
09:53:57.557 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.557 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 => /127.0.0.1:38108] FLUSH
09:53:57.557 [nioEventLoopGroup-472-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-472-1
09:53:57.557 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 :> /127.0.0.1:38108] INACTIVE
09:53:57.557 [nioEventLoopGroup-468-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87f2be2e, /127.0.0.1:54490 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.558 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.559 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.560 [nioEventLoopGroup-468-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:57.560 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.560 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 => /127.0.0.1:38108] FLUSH
09:53:57.560 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.560 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 => /127.0.0.1:38108] FLUSH
09:53:57.561 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 :> /127.0.0.1:38108] INACTIVE
09:53:57.561 [nioEventLoopGroup-468-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92f15470, /127.0.0.1:54492 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.561 [nioEventLoopGroup-473-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-473-1
09:53:57.567 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.568 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.569 [nioEventLoopGroup-468-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:57.569 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.569 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 => /127.0.0.1:38108] FLUSH
09:53:57.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.570 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 => /127.0.0.1:38108] FLUSH
09:53:57.570 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 :> /127.0.0.1:38108] INACTIVE
09:53:57.570 [nioEventLoopGroup-468-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd5d0ca94, /127.0.0.1:54494 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.570 [nioEventLoopGroup-474-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-474-1
09:53:57.572 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.574 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.575 [nioEventLoopGroup-468-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:57.575 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.575 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 => /127.0.0.1:38108] FLUSH
09:53:57.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.575 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 => /127.0.0.1:38108] FLUSH
09:53:57.575 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 :> /127.0.0.1:38108] INACTIVE
09:53:57.575 [nioEventLoopGroup-468-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16132b2f, /127.0.0.1:54496 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.575 [nioEventLoopGroup-475-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-475-1
09:53:57.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.585 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.585 [nioEventLoopGroup-468-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:57.585 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.585 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 => /127.0.0.1:38108] FLUSH
09:53:57.586 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.586 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 => /127.0.0.1:38108] FLUSH
09:53:57.586 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 :> /127.0.0.1:38108] INACTIVE
09:53:57.586 [nioEventLoopGroup-468-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f3dcd1c, /127.0.0.1:54498 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.586 [nioEventLoopGroup-476-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-476-1
09:53:57.586 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.588 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.589 [nioEventLoopGroup-468-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:57.589 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.589 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 => /127.0.0.1:38108] FLUSH
09:53:57.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.589 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 => /127.0.0.1:38108] FLUSH
09:53:57.589 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 :> /127.0.0.1:38108] INACTIVE
09:53:57.589 [nioEventLoopGroup-468-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa92690a5, /127.0.0.1:54502 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.589 [nioEventLoopGroup-477-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-477-1
09:53:57.590 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.591 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.592 [nioEventLoopGroup-468-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:57.592 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.592 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 => /127.0.0.1:38108] FLUSH
09:53:57.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.592 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 => /127.0.0.1:38108] FLUSH
09:53:57.592 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 :> /127.0.0.1:38108] INACTIVE
09:53:57.592 [nioEventLoopGroup-468-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x33317bcc, /127.0.0.1:54504 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.592 [nioEventLoopGroup-478-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-478-1
09:53:57.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.594 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.595 [nioEventLoopGroup-468-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:57.595 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.595 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 => /127.0.0.1:38108] FLUSH
09:53:57.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.595 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 => /127.0.0.1:38108] FLUSH
09:53:57.595 [nioEventLoopGroup-479-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-479-1
09:53:57.595 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 :> /127.0.0.1:38108] INACTIVE
09:53:57.595 [nioEventLoopGroup-468-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bbccec6, /127.0.0.1:54506 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.596 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.598 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.599 [nioEventLoopGroup-468-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:57.599 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.599 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 => /127.0.0.1:38108] FLUSH
09:53:57.599 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.599 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 => /127.0.0.1:38108] FLUSH
09:53:57.599 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 :> /127.0.0.1:38108] INACTIVE
09:53:57.599 [nioEventLoopGroup-468-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7c2e24e9, /127.0.0.1:54508 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.599 [nioEventLoopGroup-480-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-480-1
09:53:57.600 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.602 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 => /127.0.0.1:38108] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.603 [nioEventLoopGroup-468-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.603 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.603 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 => /127.0.0.1:38108] FLUSH
09:53:57.603 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.603 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 => /127.0.0.1:38108] FLUSH
09:53:57.604 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 :> /127.0.0.1:38108] INACTIVE
09:53:57.604 [nioEventLoopGroup-468-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf56a4398, /127.0.0.1:54510 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.604 [nioEventLoopGroup-481-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-481-1
09:53:57.606 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38108
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:57.606 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.606 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.607 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:57.607 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.607 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
09:53:57.608 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:57.608 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
09:53:57.608 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] FLUSH
09:53:57.611 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /xml HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38108
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:57.611 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.611 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.612 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:57.612 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:57.612 [nioEventLoopGroup-468-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/xml"
}
09:53:57.612 [nioEventLoopGroup-468-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
for request:
{
"method" : "GET",
"path" : "/xml",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38108" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:57.612 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 95, cap: 95/95))
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 95
Connection: keep-alive, 95B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 |<?xml version="1|
|00000010| 2e 30 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c |.0"?><root><chil|
|00000020| 64 3e 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f |d><elt name='foo|
|00000030| 27 20 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e |' /><text>Nothin|
|00000040| 67 20 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e |g special</text>|
|00000050| 3c 2f 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e |</child></root> |
+--------+-------------------------------------------------+----------------+
09:53:57.612 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 => /127.0.0.1:38108] FLUSH
09:53:57.614 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:57.616 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 => /127.0.0.1:38108] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38108
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:57.617 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 => /127.0.0.1:38108] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.617 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 => /127.0.0.1:38108] FLUSH
09:53:57.617 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 => /127.0.0.1:38108] CLOSE()
09:53:57.617 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.617 [nioEventLoopGroup-482-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-482-1
09:53:57.618 [nioEventLoopGroup-468-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-5
09:53:57.618 [nioEventLoopGroup-468-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-1
09:53:57.618 [nioEventLoopGroup-468-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-2
09:53:57.618 [nioEventLoopGroup-468-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-7
09:53:57.618 [nioEventLoopGroup-468-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-4
09:53:57.618 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 :> /127.0.0.1:38108] INACTIVE
09:53:57.618 [nioEventLoopGroup-468-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-3
09:53:57.618 [nioEventLoopGroup-468-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-6
09:53:57.619 [nioEventLoopGroup-468-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-8
09:53:57.619 [nioEventLoopGroup-468-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-10
09:53:57.619 [nioEventLoopGroup-468-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb5ba27f2, /127.0.0.1:54512 :> /127.0.0.1:38108] UNREGISTERED
09:53:57.619 [nioEventLoopGroup-468-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-11
09:53:57.619 [nioEventLoopGroup-468-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-12
09:53:57.619 [nioEventLoopGroup-468-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-13
09:53:57.620 [nioEventLoopGroup-468-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-9
09:53:57.683 [nioEventLoopGroup-436-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-436-14
09:53:57.692 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 :> /127.0.0.1:43230] FLUSH
09:53:57.692 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 :> /127.0.0.1:43230] INACTIVE
09:53:57.692 [nioEventLoopGroup-452-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2281d734, /127.0.0.1:51564 :> /127.0.0.1:43230] UNREGISTERED
09:53:57.692 [nioEventLoopGroup-452-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-16
09:53:57.976 [MockServer thread for port: 38582] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38582
09:53:57.977 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.980 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.981 [nioEventLoopGroup-484-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.982 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.982 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 => /127.0.0.1:38582] FLUSH
09:53:57.982 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 => /127.0.0.1:38582] FLUSH
09:53:57.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 :> /127.0.0.1:38582] INACTIVE
09:53:57.983 [nioEventLoopGroup-484-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d3c4a48, /127.0.0.1:60412 :> /127.0.0.1:38582] UNREGISTERED
09:53:57.983 [nioEventLoopGroup-485-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-485-1
09:53:57.984 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.987 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.988 [nioEventLoopGroup-484-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:57.988 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.989 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 => /127.0.0.1:38582] FLUSH
09:53:57.989 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.989 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 => /127.0.0.1:38582] FLUSH
09:53:57.989 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 :> /127.0.0.1:38582] INACTIVE
09:53:57.989 [nioEventLoopGroup-484-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f029015, /127.0.0.1:60414 :> /127.0.0.1:38582] UNREGISTERED
09:53:57.989 [nioEventLoopGroup-486-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-486-1
09:53:57.990 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.992 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.993 [nioEventLoopGroup-484-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:57.993 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.993 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 => /127.0.0.1:38582] FLUSH
09:53:57.994 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.994 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 => /127.0.0.1:38582] FLUSH
09:53:57.994 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 :> /127.0.0.1:38582] INACTIVE
09:53:57.994 [nioEventLoopGroup-484-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed1591b9, /127.0.0.1:60416 :> /127.0.0.1:38582] UNREGISTERED
09:53:57.994 [nioEventLoopGroup-487-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-487-1
09:53:57.996 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:57.998 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:57.998 [nioEventLoopGroup-484-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:57.999 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:57.999 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 => /127.0.0.1:38582] FLUSH
09:53:57.999 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:57.999 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 => /127.0.0.1:38582] FLUSH
09:53:57.999 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 :> /127.0.0.1:38582] INACTIVE
09:53:57.999 [nioEventLoopGroup-484-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7d9e0b9, /127.0.0.1:60418 :> /127.0.0.1:38582] UNREGISTERED
09:53:57.999 [nioEventLoopGroup-488-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-488-1
09:53:58.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.003 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.004 [nioEventLoopGroup-484-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:58.005 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.005 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 => /127.0.0.1:38582] FLUSH
09:53:58.005 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.005 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 => /127.0.0.1:38582] FLUSH
09:53:58.005 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 :> /127.0.0.1:38582] INACTIVE
09:53:58.005 [nioEventLoopGroup-484-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9d532f08, /127.0.0.1:60420 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.005 [nioEventLoopGroup-489-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-489-1
09:53:58.006 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.008 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.009 [nioEventLoopGroup-484-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:58.009 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.009 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 => /127.0.0.1:38582] FLUSH
09:53:58.009 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.009 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 => /127.0.0.1:38582] FLUSH
09:53:58.009 [nioEventLoopGroup-490-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-490-1
09:53:58.009 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 :> /127.0.0.1:38582] INACTIVE
09:53:58.009 [nioEventLoopGroup-484-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc8550f42, /127.0.0.1:60422 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.012 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.013 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.014 [nioEventLoopGroup-484-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:58.014 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.014 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 => /127.0.0.1:38582] FLUSH
09:53:58.014 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.015 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 => /127.0.0.1:38582] FLUSH
09:53:58.015 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 :> /127.0.0.1:38582] INACTIVE
09:53:58.015 [nioEventLoopGroup-484-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x831079e3, /127.0.0.1:60424 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.015 [nioEventLoopGroup-491-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-491-1
09:53:58.015 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.017 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.017 [nioEventLoopGroup-484-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:58.018 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.018 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 => /127.0.0.1:38582] FLUSH
09:53:58.018 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.018 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 => /127.0.0.1:38582] FLUSH
09:53:58.018 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 :> /127.0.0.1:38582] INACTIVE
09:53:58.018 [nioEventLoopGroup-492-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-492-1
09:53:58.019 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.022 [nioEventLoopGroup-484-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf73f59aa, /127.0.0.1:60426 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.024 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.024 [nioEventLoopGroup-484-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:58.024 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.024 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 => /127.0.0.1:38582] FLUSH
09:53:58.025 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.025 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 => /127.0.0.1:38582] FLUSH
09:53:58.025 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 :> /127.0.0.1:38582] INACTIVE
09:53:58.025 [nioEventLoopGroup-484-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x08491ebd, /127.0.0.1:60428 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.025 [nioEventLoopGroup-493-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-493-1
09:53:58.026 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.028 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.029 [nioEventLoopGroup-484-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:58.029 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.029 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 => /127.0.0.1:38582] FLUSH
09:53:58.029 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.029 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 => /127.0.0.1:38582] FLUSH
09:53:58.029 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 :> /127.0.0.1:38582] INACTIVE
09:53:58.029 [nioEventLoopGroup-484-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x89ae7751, /127.0.0.1:60430 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.029 [nioEventLoopGroup-494-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-494-1
09:53:58.031 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.033 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.034 [nioEventLoopGroup-484-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:58.034 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.034 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 => /127.0.0.1:38582] FLUSH
09:53:58.034 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.034 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 => /127.0.0.1:38582] FLUSH
09:53:58.034 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 :> /127.0.0.1:38582] INACTIVE
09:53:58.034 [nioEventLoopGroup-484-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3bfa9de1, /127.0.0.1:60432 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.034 [nioEventLoopGroup-495-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-495-1
09:53:58.035 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.037 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.038 [nioEventLoopGroup-484-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:58.038 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.038 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 => /127.0.0.1:38582] FLUSH
09:53:58.038 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.038 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 => /127.0.0.1:38582] FLUSH
09:53:58.038 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 :> /127.0.0.1:38582] INACTIVE
09:53:58.038 [nioEventLoopGroup-496-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-496-1
09:53:58.038 [nioEventLoopGroup-484-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa7368035, /127.0.0.1:60434 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.039 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.041 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 => /127.0.0.1:38582] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.041 [nioEventLoopGroup-484-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.041 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.042 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 => /127.0.0.1:38582] FLUSH
09:53:58.042 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.042 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 => /127.0.0.1:38582] FLUSH
09:53:58.042 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 :> /127.0.0.1:38582] INACTIVE
09:53:58.042 [nioEventLoopGroup-484-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf5f627c9, /127.0.0.1:60436 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.042 [nioEventLoopGroup-497-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-497-1
09:53:58.049 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd18935f, /127.0.0.1:60438 => /127.0.0.1:38582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:38582
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:58.049 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.049 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.050 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:58.050 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.050 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.050 [nioEventLoopGroup-484-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
09:53:58.051 [nioEventLoopGroup-484-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:58.051 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd18935f, /127.0.0.1:60438 => /127.0.0.1:38582] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
09:53:58.051 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd18935f, /127.0.0.1:60438 => /127.0.0.1:38582] FLUSH
09:53:58.073 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03036ab0, /127.0.0.1:60440 => /127.0.0.1:38582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Host: localhost:38582
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:58.073 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.073 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.073 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:58.074 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.074 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.074 [nioEventLoopGroup-484-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
09:53:58.074 [nioEventLoopGroup-484-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:38582" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:58.074 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03036ab0, /127.0.0.1:60440 => /127.0.0.1:38582] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
09:53:58.074 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03036ab0, /127.0.0.1:60440 => /127.0.0.1:38582] FLUSH
09:53:58.075 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:58.077 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 => /127.0.0.1:38582] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38582
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:58.077 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 => /127.0.0.1:38582] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.077 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 => /127.0.0.1:38582] FLUSH
09:53:58.077 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 => /127.0.0.1:38582] CLOSE()
09:53:58.077 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.078 [nioEventLoopGroup-498-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-498-1
09:53:58.083 [nioEventLoopGroup-484-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-3
09:53:58.083 [nioEventLoopGroup-484-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-1
09:53:58.083 [nioEventLoopGroup-484-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-2
09:53:58.083 [nioEventLoopGroup-484-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-4
09:53:58.083 [nioEventLoopGroup-484-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-5
09:53:58.083 [nioEventLoopGroup-484-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-6
09:53:58.083 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd18935f, /127.0.0.1:60438 :> /127.0.0.1:38582] INACTIVE
09:53:58.083 [nioEventLoopGroup-484-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-7
09:53:58.083 [nioEventLoopGroup-484-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-8
09:53:58.083 [nioEventLoopGroup-484-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-9
09:53:58.083 [nioEventLoopGroup-484-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-10
09:53:58.083 [nioEventLoopGroup-484-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-11
09:53:58.083 [nioEventLoopGroup-484-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-12
09:53:58.083 [nioEventLoopGroup-484-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-13
09:53:58.083 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03036ab0, /127.0.0.1:60440 :> /127.0.0.1:38582] INACTIVE
09:53:58.084 [nioEventLoopGroup-484-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfd18935f, /127.0.0.1:60438 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.084 [nioEventLoopGroup-484-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x03036ab0, /127.0.0.1:60440 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.119 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 :> /127.0.0.1:38108] FLUSH
09:53:58.119 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 :> /127.0.0.1:38108] INACTIVE
09:53:58.119 [nioEventLoopGroup-468-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeed2854e, /127.0.0.1:54514 :> /127.0.0.1:38108] UNREGISTERED
09:53:58.119 [nioEventLoopGroup-468-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-15
09:53:58.197 [nioEventLoopGroup-452-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-14
09:53:58.197 [nioEventLoopGroup-452-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-452-15
09:53:58.433 [MockServer thread for port: 40819] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 40819
09:53:58.433 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.437 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.439 [nioEventLoopGroup-500-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.439 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.439 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 => /127.0.0.1:40819] FLUSH
09:53:58.440 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 => /127.0.0.1:40819] FLUSH
09:53:58.440 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.440 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 :> /127.0.0.1:40819] INACTIVE
09:53:58.440 [nioEventLoopGroup-500-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf3bd77cc, /127.0.0.1:44086 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.441 [nioEventLoopGroup-501-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-501-1
09:53:58.443 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.446 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.448 [nioEventLoopGroup-500-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:58.448 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.448 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 => /127.0.0.1:40819] FLUSH
09:53:58.449 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.449 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 => /127.0.0.1:40819] FLUSH
09:53:58.449 [nioEventLoopGroup-502-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-502-1
09:53:58.449 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 :> /127.0.0.1:40819] INACTIVE
09:53:58.449 [nioEventLoopGroup-500-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30ec3e19, /127.0.0.1:44088 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.452 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.456 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.457 [nioEventLoopGroup-500-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:58.458 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.458 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 => /127.0.0.1:40819] FLUSH
09:53:58.458 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.459 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 => /127.0.0.1:40819] FLUSH
09:53:58.459 [nioEventLoopGroup-503-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-503-1
09:53:58.459 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 :> /127.0.0.1:40819] INACTIVE
09:53:58.459 [nioEventLoopGroup-500-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x49e5f086, /127.0.0.1:44090 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.461 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.463 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.465 [nioEventLoopGroup-500-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.465 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.465 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 => /127.0.0.1:40819] FLUSH
09:53:58.466 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.466 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 => /127.0.0.1:40819] FLUSH
09:53:58.466 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 :> /127.0.0.1:40819] INACTIVE
09:53:58.466 [nioEventLoopGroup-500-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdc71ac14, /127.0.0.1:44092 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.466 [nioEventLoopGroup-504-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-504-1
09:53:58.469 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.473 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.474 [nioEventLoopGroup-500-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:58.474 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.474 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 => /127.0.0.1:40819] FLUSH
09:53:58.475 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.475 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 => /127.0.0.1:40819] FLUSH
09:53:58.475 [nioEventLoopGroup-505-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-505-1
09:53:58.475 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 :> /127.0.0.1:40819] INACTIVE
09:53:58.475 [nioEventLoopGroup-500-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4e2457c1, /127.0.0.1:44094 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.484 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.487 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.488 [nioEventLoopGroup-500-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:58.489 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.489 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 => /127.0.0.1:40819] FLUSH
09:53:58.489 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.489 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 => /127.0.0.1:40819] FLUSH
09:53:58.489 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 :> /127.0.0.1:40819] INACTIVE
09:53:58.489 [nioEventLoopGroup-500-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfa7812e1, /127.0.0.1:44096 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.489 [nioEventLoopGroup-506-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-506-1
09:53:58.492 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.506 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.507 [nioEventLoopGroup-500-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:58.507 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.507 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 => /127.0.0.1:40819] FLUSH
09:53:58.507 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.507 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 => /127.0.0.1:40819] FLUSH
09:53:58.507 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 :> /127.0.0.1:40819] INACTIVE
09:53:58.507 [nioEventLoopGroup-500-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0213e34b, /127.0.0.1:44098 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.507 [nioEventLoopGroup-507-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-507-1
09:53:58.508 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.510 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.510 [nioEventLoopGroup-500-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:58.511 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.511 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 => /127.0.0.1:40819] FLUSH
09:53:58.511 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.511 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 => /127.0.0.1:40819] FLUSH
09:53:58.511 [nioEventLoopGroup-508-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-508-1
09:53:58.511 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 :> /127.0.0.1:40819] INACTIVE
09:53:58.511 [nioEventLoopGroup-500-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9ebc0d8e, /127.0.0.1:44100 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.512 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.513 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.514 [nioEventLoopGroup-500-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:58.514 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.514 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 => /127.0.0.1:40819] FLUSH
09:53:58.514 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.514 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 => /127.0.0.1:40819] FLUSH
09:53:58.515 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 :> /127.0.0.1:40819] INACTIVE
09:53:58.515 [nioEventLoopGroup-500-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeb74318a, /127.0.0.1:44102 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.515 [nioEventLoopGroup-509-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-509-1
09:53:58.519 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.522 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.523 [nioEventLoopGroup-500-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:58.523 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.523 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 => /127.0.0.1:40819] FLUSH
09:53:58.524 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 => /127.0.0.1:40819] FLUSH
09:53:58.524 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.524 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 :> /127.0.0.1:40819] INACTIVE
09:53:58.524 [nioEventLoopGroup-500-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc217101c, /127.0.0.1:44104 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.524 [nioEventLoopGroup-510-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-510-1
09:53:58.527 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.529 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.530 [nioEventLoopGroup-500-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:58.530 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.531 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 => /127.0.0.1:40819] FLUSH
09:53:58.531 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.531 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 => /127.0.0.1:40819] FLUSH
09:53:58.531 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 :> /127.0.0.1:40819] INACTIVE
09:53:58.531 [nioEventLoopGroup-511-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-511-1
09:53:58.533 [nioEventLoopGroup-500-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x592b52c1, /127.0.0.1:44106 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.535 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.537 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.538 [nioEventLoopGroup-500-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:58.538 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.538 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 => /127.0.0.1:40819] FLUSH
09:53:58.538 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.538 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 => /127.0.0.1:40819] FLUSH
09:53:58.538 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 :> /127.0.0.1:40819] INACTIVE
09:53:58.538 [nioEventLoopGroup-500-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xee31dc5f, /127.0.0.1:44108 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.539 [nioEventLoopGroup-512-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-512-1
09:53:58.539 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.541 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 => /127.0.0.1:40819] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.542 [nioEventLoopGroup-500-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.542 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 => /127.0.0.1:40819] FLUSH
09:53:58.543 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 => /127.0.0.1:40819] FLUSH
09:53:58.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 :> /127.0.0.1:40819] INACTIVE
09:53:58.543 [nioEventLoopGroup-500-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xed88a292, /127.0.0.1:44110 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.543 [nioEventLoopGroup-513-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-513-1
09:53:58.554 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:40819
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:58.555 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.556 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.556 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:58.556 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.556 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.557 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
09:53:58.557 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:58.557 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
09:53:58.557 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] FLUSH
09:53:58.559 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /json HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:40819
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:53:58.560 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.560 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.560 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:53:58.560 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.560 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.561 [nioEventLoopGroup-500-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/json"
}
09:53:58.561 [nioEventLoopGroup-500-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
for request:
{
"method" : "GET",
"path" : "/json",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:40819" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:58.561 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 136, cap: 136/136))
HTTP/1.1 200 OK
Content-Type: text/json
Content-Length: 136
Connection: keep-alive, 136B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 0a 7b 0a 20 20 20 20 22 69 74 65 6d 73 22 3a 5b |.{. "items":[|
|00000010| 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 |. {. |
|00000020| 20 20 20 20 20 20 20 22 6e 61 6d 65 22 3a 22 61 | "name":"a|
|00000030| 6c 70 68 61 22 2c 0a 20 20 20 20 20 20 20 20 20 |lpha",. |
|00000040| 20 20 20 22 73 63 6f 72 65 22 3a 31 32 33 2c 0a | "score":123,.|
|00000050| 20 20 20 20 20 20 20 20 20 20 20 20 22 74 65 78 | "tex|
|00000060| 74 22 3a 20 22 4e 6f 74 68 69 6e 67 20 73 70 65 |t": "Nothing spe|
|00000070| 63 69 61 6c 22 0a 20 20 20 20 20 20 20 20 7d 0a |cial". }.|
|00000080| 20 20 20 20 5d 0a 7d 0a | ].}. |
+--------+-------------------------------------------------+----------------+
09:53:58.561 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 => /127.0.0.1:40819] FLUSH
09:53:58.562 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:58.563 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 => /127.0.0.1:40819] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:40819
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:58.564 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 => /127.0.0.1:40819] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.564 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 => /127.0.0.1:40819] FLUSH
09:53:58.564 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 => /127.0.0.1:40819] CLOSE()
09:53:58.564 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.565 [nioEventLoopGroup-514-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-514-1
09:53:58.566 [nioEventLoopGroup-500-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-1
09:53:58.566 [nioEventLoopGroup-500-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-7
09:53:58.566 [nioEventLoopGroup-500-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-2
09:53:58.566 [nioEventLoopGroup-500-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-8
09:53:58.566 [nioEventLoopGroup-500-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-10
09:53:58.566 [nioEventLoopGroup-500-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-13
09:53:58.566 [nioEventLoopGroup-500-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-5
09:53:58.566 [nioEventLoopGroup-500-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-4
09:53:58.566 [nioEventLoopGroup-500-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-9
09:53:58.566 [nioEventLoopGroup-500-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-11
09:53:58.566 [nioEventLoopGroup-500-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-6
09:53:58.566 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 :> /127.0.0.1:40819] INACTIVE
09:53:58.566 [nioEventLoopGroup-500-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-12
09:53:58.566 [nioEventLoopGroup-500-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf0eee129, /127.0.0.1:44112 :> /127.0.0.1:40819] UNREGISTERED
09:53:58.569 [nioEventLoopGroup-500-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-3
09:53:58.583 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 :> /127.0.0.1:38582] FLUSH
09:53:58.583 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 :> /127.0.0.1:38582] INACTIVE
09:53:58.583 [nioEventLoopGroup-484-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5c10f0a0, /127.0.0.1:60442 :> /127.0.0.1:38582] UNREGISTERED
09:53:58.583 [nioEventLoopGroup-484-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-16
09:53:58.620 [nioEventLoopGroup-468-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-468-14
09:53:58.919 [MockServer thread for port: 42417] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 42417
09:53:58.919 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.923 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.925 [nioEventLoopGroup-516-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.925 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.925 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 => /127.0.0.1:42417] FLUSH
09:53:58.926 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.926 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 => /127.0.0.1:42417] FLUSH
09:53:58.926 [nioEventLoopGroup-517-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-517-1
09:53:58.926 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 :> /127.0.0.1:42417] INACTIVE
09:53:58.926 [nioEventLoopGroup-516-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd66488f3, /127.0.0.1:42846 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.928 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.930 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.931 [nioEventLoopGroup-516-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:58.932 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.932 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 => /127.0.0.1:42417] FLUSH
09:53:58.932 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.932 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 => /127.0.0.1:42417] FLUSH
09:53:58.932 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 :> /127.0.0.1:42417] INACTIVE
09:53:58.932 [nioEventLoopGroup-516-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4da41c4d, /127.0.0.1:42848 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.932 [nioEventLoopGroup-518-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-518-1
09:53:58.933 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.934 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.935 [nioEventLoopGroup-516-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:58.935 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.936 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 => /127.0.0.1:42417] FLUSH
09:53:58.936 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.936 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 => /127.0.0.1:42417] FLUSH
09:53:58.936 [nioEventLoopGroup-519-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-519-1
09:53:58.936 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 :> /127.0.0.1:42417] INACTIVE
09:53:58.936 [nioEventLoopGroup-516-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd1774510, /127.0.0.1:42850 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.937 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.938 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.939 [nioEventLoopGroup-516-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.939 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.939 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 => /127.0.0.1:42417] FLUSH
09:53:58.939 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.939 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 => /127.0.0.1:42417] FLUSH
09:53:58.940 [nioEventLoopGroup-520-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-520-1
09:53:58.940 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 :> /127.0.0.1:42417] INACTIVE
09:53:58.940 [nioEventLoopGroup-516-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0ed418cd, /127.0.0.1:42852 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.941 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.942 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.943 [nioEventLoopGroup-516-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:58.943 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.943 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 => /127.0.0.1:42417] FLUSH
09:53:58.943 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.943 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 => /127.0.0.1:42417] FLUSH
09:53:58.943 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 :> /127.0.0.1:42417] INACTIVE
09:53:58.943 [nioEventLoopGroup-516-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde24ccc5, /127.0.0.1:42854 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.943 [nioEventLoopGroup-521-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-521-1
09:53:58.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.945 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.946 [nioEventLoopGroup-516-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:58.946 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.946 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 => /127.0.0.1:42417] FLUSH
09:53:58.946 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.946 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 => /127.0.0.1:42417] FLUSH
09:53:58.946 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 :> /127.0.0.1:42417] INACTIVE
09:53:58.946 [nioEventLoopGroup-516-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2b10fe0b, /127.0.0.1:42856 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.946 [nioEventLoopGroup-522-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-522-1
09:53:58.947 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.948 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.949 [nioEventLoopGroup-516-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:58.949 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.949 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 => /127.0.0.1:42417] FLUSH
09:53:58.949 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.949 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 => /127.0.0.1:42417] FLUSH
09:53:58.949 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 :> /127.0.0.1:42417] INACTIVE
09:53:58.949 [nioEventLoopGroup-523-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-523-1
09:53:58.949 [nioEventLoopGroup-516-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ca97318, /127.0.0.1:42858 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.950 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.952 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.953 [nioEventLoopGroup-516-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:58.953 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.953 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 => /127.0.0.1:42417] FLUSH
09:53:58.953 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.953 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 => /127.0.0.1:42417] FLUSH
09:53:58.954 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 :> /127.0.0.1:42417] INACTIVE
09:53:58.954 [nioEventLoopGroup-516-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf19693b3, /127.0.0.1:42860 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.954 [nioEventLoopGroup-524-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-524-1
09:53:58.954 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.956 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.957 [nioEventLoopGroup-516-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:58.957 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.957 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 => /127.0.0.1:42417] FLUSH
09:53:58.957 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.957 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 => /127.0.0.1:42417] FLUSH
09:53:58.957 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 :> /127.0.0.1:42417] INACTIVE
09:53:58.958 [nioEventLoopGroup-516-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaa625518, /127.0.0.1:42862 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.957 [nioEventLoopGroup-525-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-525-1
09:53:58.958 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.960 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.960 [nioEventLoopGroup-516-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:58.960 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.960 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 => /127.0.0.1:42417] FLUSH
09:53:58.960 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.961 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 => /127.0.0.1:42417] FLUSH
09:53:58.961 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 :> /127.0.0.1:42417] INACTIVE
09:53:58.961 [nioEventLoopGroup-516-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x106fdbbd, /127.0.0.1:42864 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.961 [nioEventLoopGroup-526-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-526-1
09:53:58.961 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.963 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.963 [nioEventLoopGroup-516-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:58.963 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.963 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 => /127.0.0.1:42417] FLUSH
09:53:58.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.964 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 => /127.0.0.1:42417] FLUSH
09:53:58.964 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 :> /127.0.0.1:42417] INACTIVE
09:53:58.964 [nioEventLoopGroup-516-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x652a6931, /127.0.0.1:42866 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.964 [nioEventLoopGroup-527-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-527-1
09:53:58.964 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.966 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.966 [nioEventLoopGroup-516-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:58.966 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.967 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 => /127.0.0.1:42417] FLUSH
09:53:58.967 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.967 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 => /127.0.0.1:42417] FLUSH
09:53:58.967 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 :> /127.0.0.1:42417] INACTIVE
09:53:58.967 [nioEventLoopGroup-516-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27bba3df, /127.0.0.1:42868 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.967 [nioEventLoopGroup-528-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-528-1
09:53:58.972 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:58.974 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 => /127.0.0.1:42417] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:58.974 [nioEventLoopGroup-516-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:58.975 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:58.975 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 => /127.0.0.1:42417] FLUSH
09:53:58.975 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:58.975 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 => /127.0.0.1:42417] FLUSH
09:53:58.975 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 :> /127.0.0.1:42417] INACTIVE
09:53:58.975 [nioEventLoopGroup-516-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1ba8afc1, /127.0.0.1:42870 :> /127.0.0.1:42417] UNREGISTERED
09:53:58.975 [nioEventLoopGroup-529-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-529-1
09:53:58.984 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef243a43, /127.0.0.1:42872 => /127.0.0.1:42417] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:42417
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:58.994 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.994 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.994 [nioEventLoopGroup-516-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
09:53:58.994 [nioEventLoopGroup-516-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:53:58.995 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef243a43, /127.0.0.1:42872 => /127.0.0.1:42417] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:58.995 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef243a43, /127.0.0.1:42872 => /127.0.0.1:42417] FLUSH
09:53:58.999 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf858ea, /127.0.0.1:42874 => /127.0.0.1:42417] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Host: localhost:42417
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Cookie: biscuit=wafer
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:58.999 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:58.999 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.000 [nioEventLoopGroup-516-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
09:53:59.000 [nioEventLoopGroup-516-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:42417" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:53:59.000 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf858ea, /127.0.0.1:42874 => /127.0.0.1:42417] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:59.000 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf858ea, /127.0.0.1:42874 => /127.0.0.1:42417] FLUSH
09:53:59.001 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:59.002 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 => /127.0.0.1:42417] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:42417
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:59.003 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 => /127.0.0.1:42417] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.003 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 => /127.0.0.1:42417] FLUSH
09:53:59.003 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 => /127.0.0.1:42417] CLOSE()
09:53:59.003 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.003 [nioEventLoopGroup-530-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-530-1
09:53:59.004 [nioEventLoopGroup-516-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-3
09:53:59.004 [nioEventLoopGroup-516-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-2
09:53:59.004 [nioEventLoopGroup-516-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-7
09:53:59.004 [nioEventLoopGroup-516-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-1
09:53:59.004 [nioEventLoopGroup-516-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-4
09:53:59.004 [nioEventLoopGroup-516-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-5
09:53:59.004 [nioEventLoopGroup-516-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-6
09:53:59.004 [nioEventLoopGroup-516-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-8
09:53:59.004 [nioEventLoopGroup-516-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-9
09:53:59.004 [nioEventLoopGroup-516-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-10
09:53:59.004 [nioEventLoopGroup-516-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-11
09:53:59.004 [nioEventLoopGroup-516-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-13
09:53:59.004 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef243a43, /127.0.0.1:42872 :> /127.0.0.1:42417] INACTIVE
09:53:59.004 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf858ea, /127.0.0.1:42874 :> /127.0.0.1:42417] INACTIVE
09:53:59.005 [nioEventLoopGroup-516-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xef243a43, /127.0.0.1:42872 :> /127.0.0.1:42417] UNREGISTERED
09:53:59.005 [nioEventLoopGroup-516-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebf858ea, /127.0.0.1:42874 :> /127.0.0.1:42417] UNREGISTERED
09:53:59.005 [nioEventLoopGroup-516-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-12
09:53:59.066 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 :> /127.0.0.1:40819] FLUSH
09:53:59.066 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 :> /127.0.0.1:40819] INACTIVE
09:53:59.066 [nioEventLoopGroup-500-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5a1d35c3, /127.0.0.1:44115 :> /127.0.0.1:40819] UNREGISTERED
09:53:59.066 [nioEventLoopGroup-500-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-15
09:53:59.085 [nioEventLoopGroup-484-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-15
09:53:59.085 [nioEventLoopGroup-484-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-484-14
09:53:59.358 [MockServer thread for port: 44962] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 44962
09:53:59.358 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.361 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.363 [nioEventLoopGroup-532-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.363 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.363 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 => /127.0.0.1:44962] FLUSH
09:53:59.364 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.364 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 => /127.0.0.1:44962] FLUSH
09:53:59.364 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 :> /127.0.0.1:44962] INACTIVE
09:53:59.364 [nioEventLoopGroup-532-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad236a1c, /127.0.0.1:47422 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.364 [nioEventLoopGroup-533-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-533-1
09:53:59.365 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.366 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.368 [nioEventLoopGroup-532-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:59.369 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.369 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 => /127.0.0.1:44962] FLUSH
09:53:59.369 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.370 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 => /127.0.0.1:44962] FLUSH
09:53:59.370 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 :> /127.0.0.1:44962] INACTIVE
09:53:59.370 [nioEventLoopGroup-532-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6fc9abbe, /127.0.0.1:47424 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.370 [nioEventLoopGroup-534-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-534-1
09:53:59.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.374 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.375 [nioEventLoopGroup-532-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:59.376 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.376 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 => /127.0.0.1:44962] FLUSH
09:53:59.376 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.376 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 => /127.0.0.1:44962] FLUSH
09:53:59.376 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 :> /127.0.0.1:44962] INACTIVE
09:53:59.376 [nioEventLoopGroup-532-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb9f9c998, /127.0.0.1:47426 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.376 [nioEventLoopGroup-535-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-535-1
09:53:59.377 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.379 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.380 [nioEventLoopGroup-532-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.380 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.380 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 => /127.0.0.1:44962] FLUSH
09:53:59.381 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.381 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 => /127.0.0.1:44962] FLUSH
09:53:59.381 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 :> /127.0.0.1:44962] INACTIVE
09:53:59.381 [nioEventLoopGroup-532-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30030959, /127.0.0.1:47428 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.381 [nioEventLoopGroup-536-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-536-1
09:53:59.382 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.384 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.384 [nioEventLoopGroup-532-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:59.385 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.385 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 => /127.0.0.1:44962] FLUSH
09:53:59.385 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.385 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 => /127.0.0.1:44962] FLUSH
09:53:59.385 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 :> /127.0.0.1:44962] INACTIVE
09:53:59.385 [nioEventLoopGroup-532-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc3f2af1b, /127.0.0.1:47430 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.385 [nioEventLoopGroup-537-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-537-1
09:53:59.386 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.388 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.388 [nioEventLoopGroup-532-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:59.388 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.388 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 => /127.0.0.1:44962] FLUSH
09:53:59.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.389 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 => /127.0.0.1:44962] FLUSH
09:53:59.389 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 :> /127.0.0.1:44962] INACTIVE
09:53:59.389 [nioEventLoopGroup-538-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-538-1
09:53:59.389 [nioEventLoopGroup-532-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x54f52b75, /127.0.0.1:47432 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.389 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.391 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.391 [nioEventLoopGroup-532-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:59.392 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.392 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 => /127.0.0.1:44962] FLUSH
09:53:59.392 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.392 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 => /127.0.0.1:44962] FLUSH
09:53:59.392 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 :> /127.0.0.1:44962] INACTIVE
09:53:59.392 [nioEventLoopGroup-532-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb39a8752, /127.0.0.1:47434 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.392 [nioEventLoopGroup-539-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-539-1
09:53:59.394 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.396 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.396 [nioEventLoopGroup-532-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:59.397 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.397 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 => /127.0.0.1:44962] FLUSH
09:53:59.397 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.397 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 => /127.0.0.1:44962] FLUSH
09:53:59.397 [nioEventLoopGroup-540-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-540-1
09:53:59.397 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 :> /127.0.0.1:44962] INACTIVE
09:53:59.397 [nioEventLoopGroup-532-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x67190136, /127.0.0.1:47436 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.400 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.401 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.402 [nioEventLoopGroup-532-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:59.402 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.402 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 => /127.0.0.1:44962] FLUSH
09:53:59.402 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.402 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 => /127.0.0.1:44962] FLUSH
09:53:59.402 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 :> /127.0.0.1:44962] INACTIVE
09:53:59.402 [nioEventLoopGroup-541-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-541-1
09:53:59.402 [nioEventLoopGroup-532-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x87205be1, /127.0.0.1:47438 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.408 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.409 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.410 [nioEventLoopGroup-532-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:59.410 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.410 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 => /127.0.0.1:44962] FLUSH
09:53:59.410 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.410 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 => /127.0.0.1:44962] FLUSH
09:53:59.411 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 :> /127.0.0.1:44962] INACTIVE
09:53:59.411 [nioEventLoopGroup-542-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-542-1
09:53:59.411 [nioEventLoopGroup-532-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc1536470, /127.0.0.1:47440 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.411 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.413 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.413 [nioEventLoopGroup-532-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:59.413 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.413 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 => /127.0.0.1:44962] FLUSH
09:53:59.414 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.414 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 => /127.0.0.1:44962] FLUSH
09:53:59.414 [nioEventLoopGroup-543-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-543-1
09:53:59.414 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 :> /127.0.0.1:44962] INACTIVE
09:53:59.414 [nioEventLoopGroup-532-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48794665, /127.0.0.1:47442 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.414 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.416 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.416 [nioEventLoopGroup-532-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:59.417 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.417 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 => /127.0.0.1:44962] FLUSH
09:53:59.417 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.417 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 => /127.0.0.1:44962] FLUSH
09:53:59.417 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 :> /127.0.0.1:44962] INACTIVE
09:53:59.417 [nioEventLoopGroup-532-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd97d6e48, /127.0.0.1:47444 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.417 [nioEventLoopGroup-544-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-544-1
09:53:59.418 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.419 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 => /127.0.0.1:44962] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.420 [nioEventLoopGroup-532-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.420 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.420 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 => /127.0.0.1:44962] FLUSH
09:53:59.421 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.421 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 => /127.0.0.1:44962] FLUSH
09:53:59.421 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 :> /127.0.0.1:44962] INACTIVE
09:53:59.421 [nioEventLoopGroup-545-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-545-1
09:53:59.421 [nioEventLoopGroup-532-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2e198fb6, /127.0.0.1:47446 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.425 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44962
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
09:53:59.425 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.425 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.426 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
09:53:59.426 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:53:59.426 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:59.426 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] FLUSH
09:53:59.428 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:44962
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
09:53:59.429 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.429 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.429 [nioEventLoopGroup-532-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
09:53:59.430 [nioEventLoopGroup-532-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:44962" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:53:59.430 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 43 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g C</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:59.430 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 => /127.0.0.1:44962] FLUSH
09:53:59.431 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:59.432 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 => /127.0.0.1:44962] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:44962
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:59.433 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 => /127.0.0.1:44962] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.433 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 => /127.0.0.1:44962] FLUSH
09:53:59.433 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 => /127.0.0.1:44962] CLOSE()
09:53:59.433 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.433 [nioEventLoopGroup-546-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-546-1
09:53:59.437 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 :> /127.0.0.1:44962] INACTIVE
09:53:59.437 [nioEventLoopGroup-532-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x710af21a, /127.0.0.1:47448 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.442 [nioEventLoopGroup-532-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-3
09:53:59.442 [nioEventLoopGroup-532-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-12
09:53:59.442 [nioEventLoopGroup-532-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-6
09:53:59.442 [nioEventLoopGroup-532-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-1
09:53:59.442 [nioEventLoopGroup-532-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-2
09:53:59.442 [nioEventLoopGroup-532-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-4
09:53:59.442 [nioEventLoopGroup-532-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-5
09:53:59.442 [nioEventLoopGroup-532-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-7
09:53:59.442 [nioEventLoopGroup-532-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-8
09:53:59.442 [nioEventLoopGroup-532-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-9
09:53:59.442 [nioEventLoopGroup-532-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-10
09:53:59.442 [nioEventLoopGroup-532-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-11
09:53:59.442 [nioEventLoopGroup-532-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-13
09:53:59.504 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 :> /127.0.0.1:42417] FLUSH
09:53:59.504 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 :> /127.0.0.1:42417] INACTIVE
09:53:59.504 [nioEventLoopGroup-516-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd9d1397a, /127.0.0.1:42876 :> /127.0.0.1:42417] UNREGISTERED
09:53:59.505 [nioEventLoopGroup-516-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-16
09:53:59.567 [nioEventLoopGroup-500-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-500-14
09:53:59.790 [MockServer thread for port: 34425] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34425
09:53:59.791 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.795 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.796 [nioEventLoopGroup-548-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.797 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.797 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 => /127.0.0.1:34425] FLUSH
09:53:59.797 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.797 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 => /127.0.0.1:34425] FLUSH
09:53:59.798 [nioEventLoopGroup-549-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-549-1
09:53:59.798 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 :> /127.0.0.1:34425] INACTIVE
09:53:59.798 [nioEventLoopGroup-548-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7239a08, /127.0.0.1:45996 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.799 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.803 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.805 [nioEventLoopGroup-548-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:53:59.805 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.805 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 => /127.0.0.1:34425] FLUSH
09:53:59.806 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.806 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 => /127.0.0.1:34425] FLUSH
09:53:59.806 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 :> /127.0.0.1:34425] INACTIVE
09:53:59.806 [nioEventLoopGroup-550-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-550-1
09:53:59.806 [nioEventLoopGroup-548-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7189cac8, /127.0.0.1:45998 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.808 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.811 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.812 [nioEventLoopGroup-548-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:53:59.812 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.812 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 => /127.0.0.1:34425] FLUSH
09:53:59.813 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.813 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 => /127.0.0.1:34425] FLUSH
09:53:59.813 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 :> /127.0.0.1:34425] INACTIVE
09:53:59.813 [nioEventLoopGroup-551-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-551-1
09:53:59.813 [nioEventLoopGroup-548-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8c5797ab, /127.0.0.1:46000 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.815 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.817 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.818 [nioEventLoopGroup-548-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.818 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.819 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 => /127.0.0.1:34425] FLUSH
09:53:59.819 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.819 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 => /127.0.0.1:34425] FLUSH
09:53:59.819 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 :> /127.0.0.1:34425] INACTIVE
09:53:59.819 [nioEventLoopGroup-552-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-552-1
09:53:59.819 [nioEventLoopGroup-548-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x27661fe8, /127.0.0.1:46002 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.820 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.823 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.824 [nioEventLoopGroup-548-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:53:59.824 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.824 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 => /127.0.0.1:34425] FLUSH
09:53:59.824 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.825 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 => /127.0.0.1:34425] FLUSH
09:53:59.825 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 :> /127.0.0.1:34425] INACTIVE
09:53:59.825 [nioEventLoopGroup-548-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d66fcd3, /127.0.0.1:46004 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.825 [nioEventLoopGroup-553-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-553-1
09:53:59.826 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.829 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.830 [nioEventLoopGroup-548-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:53:59.830 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.830 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 => /127.0.0.1:34425] FLUSH
09:53:59.830 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.830 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 => /127.0.0.1:34425] FLUSH
09:53:59.831 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 :> /127.0.0.1:34425] INACTIVE
09:53:59.831 [nioEventLoopGroup-554-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-554-1
09:53:59.831 [nioEventLoopGroup-548-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x893a92ae, /127.0.0.1:46006 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.832 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.834 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.835 [nioEventLoopGroup-548-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:53:59.835 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.835 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 => /127.0.0.1:34425] FLUSH
09:53:59.835 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.835 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 => /127.0.0.1:34425] FLUSH
09:53:59.836 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 :> /127.0.0.1:34425] INACTIVE
09:53:59.836 [nioEventLoopGroup-548-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc14b4273, /127.0.0.1:46008 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.836 [nioEventLoopGroup-555-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-555-1
09:53:59.837 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.839 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.840 [nioEventLoopGroup-548-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:53:59.840 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.840 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 => /127.0.0.1:34425] FLUSH
09:53:59.841 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.841 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 => /127.0.0.1:34425] FLUSH
09:53:59.841 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 :> /127.0.0.1:34425] INACTIVE
09:53:59.841 [nioEventLoopGroup-548-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbe92c565, /127.0.0.1:46010 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.841 [nioEventLoopGroup-556-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-556-1
09:53:59.842 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.844 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.845 [nioEventLoopGroup-548-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:53:59.845 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.845 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 => /127.0.0.1:34425] FLUSH
09:53:59.845 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.845 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 => /127.0.0.1:34425] FLUSH
09:53:59.845 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 :> /127.0.0.1:34425] INACTIVE
09:53:59.845 [nioEventLoopGroup-557-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-557-1
09:53:59.845 [nioEventLoopGroup-548-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8fec5c6a, /127.0.0.1:46012 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.846 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.848 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.849 [nioEventLoopGroup-548-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:53:59.849 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.849 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 => /127.0.0.1:34425] FLUSH
09:53:59.849 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.849 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 => /127.0.0.1:34425] FLUSH
09:53:59.849 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 :> /127.0.0.1:34425] INACTIVE
09:53:59.849 [nioEventLoopGroup-558-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-558-1
09:53:59.849 [nioEventLoopGroup-548-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7a0fe081, /127.0.0.1:46014 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.850 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.852 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.853 [nioEventLoopGroup-548-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:53:59.853 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.853 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 => /127.0.0.1:34425] FLUSH
09:53:59.853 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.853 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 => /127.0.0.1:34425] FLUSH
09:53:59.853 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 :> /127.0.0.1:34425] INACTIVE
09:53:59.853 [nioEventLoopGroup-548-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d7bf6d0, /127.0.0.1:46016 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.853 [nioEventLoopGroup-559-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-559-1
09:53:59.854 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.856 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.857 [nioEventLoopGroup-548-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:53:59.857 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.857 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 => /127.0.0.1:34425] FLUSH
09:53:59.857 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.857 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 => /127.0.0.1:34425] FLUSH
09:53:59.858 [nioEventLoopGroup-560-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-560-1
09:53:59.858 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 :> /127.0.0.1:34425] INACTIVE
09:53:59.858 [nioEventLoopGroup-548-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x91ba0217, /127.0.0.1:46018 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.883 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:53:59.885 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 => /127.0.0.1:34425] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:53:59.886 [nioEventLoopGroup-548-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:53:59.886 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.886 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 => /127.0.0.1:34425] FLUSH
09:53:59.886 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.886 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 => /127.0.0.1:34425] FLUSH
09:53:59.886 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 :> /127.0.0.1:34425] INACTIVE
09:53:59.886 [nioEventLoopGroup-548-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcdb6b492, /127.0.0.1:46020 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.886 [nioEventLoopGroup-561-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-561-1
09:53:59.895 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68b4b08e, /127.0.0.1:46022 => /127.0.0.1:34425] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:34425
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:59.895 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.896 [nioEventLoopGroup-548-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
09:53:59.896 [nioEventLoopGroup-548-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:59.896 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68b4b08e, /127.0.0.1:46022 => /127.0.0.1:34425] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:59.896 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68b4b08e, /127.0.0.1:46022 => /127.0.0.1:34425] FLUSH
09:53:59.900 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ee24340, /127.0.0.1:46024 => /127.0.0.1:34425] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Host: localhost:34425
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:53:59.901 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:53:59.901 [nioEventLoopGroup-548-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
09:53:59.901 [nioEventLoopGroup-548-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34425" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:53:59.902 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ee24340, /127.0.0.1:46024 => /127.0.0.1:34425] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:53:59.902 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ee24340, /127.0.0.1:46024 => /127.0.0.1:34425] FLUSH
09:53:59.903 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:53:59.905 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 => /127.0.0.1:34425] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34425
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:53:59.905 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 => /127.0.0.1:34425] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:53:59.905 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 => /127.0.0.1:34425] FLUSH
09:53:59.906 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 => /127.0.0.1:34425] CLOSE()
09:53:59.906 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:53:59.906 [nioEventLoopGroup-562-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-562-1
09:53:59.907 [nioEventLoopGroup-548-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-1
09:53:59.907 [nioEventLoopGroup-548-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-4
09:53:59.907 [nioEventLoopGroup-548-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-6
09:53:59.907 [nioEventLoopGroup-548-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-10
09:53:59.907 [nioEventLoopGroup-548-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-2
09:53:59.907 [nioEventLoopGroup-548-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-9
09:53:59.907 [nioEventLoopGroup-548-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-11
09:53:59.907 [nioEventLoopGroup-548-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-12
09:53:59.907 [nioEventLoopGroup-548-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-3
09:53:59.907 [nioEventLoopGroup-548-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-5
09:53:59.907 [nioEventLoopGroup-548-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-7
09:53:59.907 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68b4b08e, /127.0.0.1:46022 :> /127.0.0.1:34425] INACTIVE
09:53:59.907 [nioEventLoopGroup-548-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-8
09:53:59.907 [nioEventLoopGroup-548-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-13
09:53:59.907 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ee24340, /127.0.0.1:46024 :> /127.0.0.1:34425] INACTIVE
09:53:59.907 [nioEventLoopGroup-548-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x68b4b08e, /127.0.0.1:46022 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.907 [nioEventLoopGroup-548-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5ee24340, /127.0.0.1:46024 :> /127.0.0.1:34425] UNREGISTERED
09:53:59.936 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 :> /127.0.0.1:44962] FLUSH
09:53:59.936 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 :> /127.0.0.1:44962] INACTIVE
09:53:59.936 [nioEventLoopGroup-532-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7589ff6c, /127.0.0.1:47450 :> /127.0.0.1:44962] UNREGISTERED
09:53:59.937 [nioEventLoopGroup-532-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-15
09:54:00.006 [nioEventLoopGroup-516-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-15
09:54:00.006 [nioEventLoopGroup-516-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-516-14
09:54:00.262 [MockServer thread for port: 41519] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 41519
09:54:00.262 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.266 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.268 [nioEventLoopGroup-564-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.268 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.268 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 => /127.0.0.1:41519] FLUSH
09:54:00.269 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.269 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 => /127.0.0.1:41519] FLUSH
09:54:00.269 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 :> /127.0.0.1:41519] INACTIVE
09:54:00.269 [nioEventLoopGroup-564-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5fd52c8, /127.0.0.1:52688 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.269 [nioEventLoopGroup-565-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-565-1
09:54:00.271 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.273 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.275 [nioEventLoopGroup-564-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:00.275 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.275 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 => /127.0.0.1:41519] FLUSH
09:54:00.276 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.276 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 => /127.0.0.1:41519] FLUSH
09:54:00.276 [nioEventLoopGroup-566-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-566-1
09:54:00.276 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 :> /127.0.0.1:41519] INACTIVE
09:54:00.276 [nioEventLoopGroup-564-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x88e1cd07, /127.0.0.1:52690 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.277 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.279 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.280 [nioEventLoopGroup-564-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:00.280 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.281 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 => /127.0.0.1:41519] FLUSH
09:54:00.281 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.281 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 => /127.0.0.1:41519] FLUSH
09:54:00.281 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 :> /127.0.0.1:41519] INACTIVE
09:54:00.281 [nioEventLoopGroup-564-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa5cd350e, /127.0.0.1:52692 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.281 [nioEventLoopGroup-567-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-567-1
09:54:00.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.284 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.285 [nioEventLoopGroup-564-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.285 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.285 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 => /127.0.0.1:41519] FLUSH
09:54:00.286 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.286 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 => /127.0.0.1:41519] FLUSH
09:54:00.286 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 :> /127.0.0.1:41519] INACTIVE
09:54:00.286 [nioEventLoopGroup-568-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-568-1
09:54:00.286 [nioEventLoopGroup-564-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbde70630, /127.0.0.1:52694 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.287 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.290 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.291 [nioEventLoopGroup-564-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:00.291 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.291 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 => /127.0.0.1:41519] FLUSH
09:54:00.291 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.291 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 => /127.0.0.1:41519] FLUSH
09:54:00.291 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 :> /127.0.0.1:41519] INACTIVE
09:54:00.291 [nioEventLoopGroup-569-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-569-1
09:54:00.292 [nioEventLoopGroup-564-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc55f128b, /127.0.0.1:52696 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.293 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.295 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.296 [nioEventLoopGroup-564-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:00.297 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.297 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 => /127.0.0.1:41519] FLUSH
09:54:00.297 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.297 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 => /127.0.0.1:41519] FLUSH
09:54:00.297 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 :> /127.0.0.1:41519] INACTIVE
09:54:00.297 [nioEventLoopGroup-570-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-570-1
09:54:00.297 [nioEventLoopGroup-564-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x85d60f37, /127.0.0.1:52698 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.298 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.300 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.301 [nioEventLoopGroup-564-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:00.301 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.301 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 => /127.0.0.1:41519] FLUSH
09:54:00.301 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.301 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 => /127.0.0.1:41519] FLUSH
09:54:00.301 [nioEventLoopGroup-571-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-571-1
09:54:00.301 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 :> /127.0.0.1:41519] INACTIVE
09:54:00.301 [nioEventLoopGroup-564-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x59552e89, /127.0.0.1:52700 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.302 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.304 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.305 [nioEventLoopGroup-564-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:00.305 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.305 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 => /127.0.0.1:41519] FLUSH
09:54:00.305 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.305 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 => /127.0.0.1:41519] FLUSH
09:54:00.306 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 :> /127.0.0.1:41519] INACTIVE
09:54:00.306 [nioEventLoopGroup-564-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65ded601, /127.0.0.1:52702 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.306 [nioEventLoopGroup-572-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-572-1
09:54:00.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.308 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.309 [nioEventLoopGroup-564-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:00.309 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.309 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 => /127.0.0.1:41519] FLUSH
09:54:00.309 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.309 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 => /127.0.0.1:41519] FLUSH
09:54:00.309 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 :> /127.0.0.1:41519] INACTIVE
09:54:00.309 [nioEventLoopGroup-573-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-573-1
09:54:00.309 [nioEventLoopGroup-564-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x694099d4, /127.0.0.1:52704 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.310 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.311 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.312 [nioEventLoopGroup-564-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:00.312 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.312 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 => /127.0.0.1:41519] FLUSH
09:54:00.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.312 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 => /127.0.0.1:41519] FLUSH
09:54:00.312 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 :> /127.0.0.1:41519] INACTIVE
09:54:00.312 [nioEventLoopGroup-564-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe9c2be33, /127.0.0.1:52706 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.312 [nioEventLoopGroup-574-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-574-1
09:54:00.313 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.314 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.315 [nioEventLoopGroup-564-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:00.315 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.315 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 => /127.0.0.1:41519] FLUSH
09:54:00.315 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.315 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 => /127.0.0.1:41519] FLUSH
09:54:00.315 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 :> /127.0.0.1:41519] INACTIVE
09:54:00.315 [nioEventLoopGroup-575-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-575-1
09:54:00.315 [nioEventLoopGroup-564-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x494d1ec1, /127.0.0.1:52708 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.316 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.317 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.318 [nioEventLoopGroup-564-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:00.318 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.318 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 => /127.0.0.1:41519] FLUSH
09:54:00.318 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.318 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 => /127.0.0.1:41519] FLUSH
09:54:00.318 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 :> /127.0.0.1:41519] INACTIVE
09:54:00.318 [nioEventLoopGroup-576-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-576-1
09:54:00.318 [nioEventLoopGroup-564-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x741096d3, /127.0.0.1:52710 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.320 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 => /127.0.0.1:41519] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.321 [nioEventLoopGroup-564-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.321 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.321 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 => /127.0.0.1:41519] FLUSH
09:54:00.322 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.322 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 => /127.0.0.1:41519] FLUSH
09:54:00.322 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 :> /127.0.0.1:41519] INACTIVE
09:54:00.322 [nioEventLoopGroup-564-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc7f16971, /127.0.0.1:52712 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.322 [nioEventLoopGroup-577-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-577-1
09:54:00.325 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41519
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
09:54:00.325 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.326 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
09:54:00.326 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.326 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:54:00.327 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] FLUSH
09:54:00.328 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /foo?alpha=bravo HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:41519
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Cookie: biscuit=wafer
Content-Length: 0, 0B
09:54:00.329 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.329 [nioEventLoopGroup-564-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
09:54:00.330 [nioEventLoopGroup-564-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ],
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:41519" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Cookie",
"values" : [ "biscuit=wafer" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.330 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 113, cap: 113/113))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 113
Connection: keep-alive, 113B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e |o miss -->Testin|
|00000060| 67 20 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c |g B</body></html|
|00000070| 3e |> |
+--------+-------------------------------------------------+----------------+
09:54:00.330 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 => /127.0.0.1:41519] FLUSH
09:54:00.331 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:00.333 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 => /127.0.0.1:41519] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:41519
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:00.333 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 => /127.0.0.1:41519] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.333 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 => /127.0.0.1:41519] FLUSH
09:54:00.333 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 => /127.0.0.1:41519] CLOSE()
09:54:00.333 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.333 [nioEventLoopGroup-578-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-578-1
09:54:00.336 [nioEventLoopGroup-564-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-1
09:54:00.336 [nioEventLoopGroup-564-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-2
09:54:00.336 [nioEventLoopGroup-564-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-3
09:54:00.336 [nioEventLoopGroup-564-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-4
09:54:00.336 [nioEventLoopGroup-564-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-5
09:54:00.336 [nioEventLoopGroup-564-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-7
09:54:00.336 [nioEventLoopGroup-564-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-6
09:54:00.336 [nioEventLoopGroup-564-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-8
09:54:00.336 [nioEventLoopGroup-564-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-9
09:54:00.336 [nioEventLoopGroup-564-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-10
09:54:00.336 [nioEventLoopGroup-564-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-11
09:54:00.337 [nioEventLoopGroup-564-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-12
09:54:00.337 [nioEventLoopGroup-564-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-13
09:54:00.337 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 :> /127.0.0.1:41519] INACTIVE
09:54:00.337 [nioEventLoopGroup-564-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc677c62f, /127.0.0.1:52714 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.407 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 :> /127.0.0.1:34425] FLUSH
09:54:00.407 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 :> /127.0.0.1:34425] INACTIVE
09:54:00.407 [nioEventLoopGroup-548-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4dbb4497, /127.0.0.1:46026 :> /127.0.0.1:34425] UNREGISTERED
09:54:00.407 [nioEventLoopGroup-548-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-16
09:54:00.438 [nioEventLoopGroup-532-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-532-14
09:54:00.691 [MockServer thread for port: 34418] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 34418
09:54:00.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.695 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.697 [nioEventLoopGroup-580-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.697 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.697 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 => /127.0.0.1:34418] FLUSH
09:54:00.698 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.698 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 => /127.0.0.1:34418] FLUSH
09:54:00.698 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 :> /127.0.0.1:34418] INACTIVE
09:54:00.698 [nioEventLoopGroup-580-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x121946e9, /127.0.0.1:45358 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.698 [nioEventLoopGroup-581-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-581-1
09:54:00.700 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.703 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.704 [nioEventLoopGroup-580-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:00.704 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.704 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 => /127.0.0.1:34418] FLUSH
09:54:00.705 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.705 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 => /127.0.0.1:34418] FLUSH
09:54:00.705 [nioEventLoopGroup-582-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-582-1
09:54:00.705 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 :> /127.0.0.1:34418] INACTIVE
09:54:00.705 [nioEventLoopGroup-580-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc6fd51b7, /127.0.0.1:45360 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.706 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.709 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.710 [nioEventLoopGroup-580-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:00.710 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.710 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 => /127.0.0.1:34418] FLUSH
09:54:00.710 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.710 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 => /127.0.0.1:34418] FLUSH
09:54:00.710 [nioEventLoopGroup-583-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-583-1
09:54:00.710 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 :> /127.0.0.1:34418] INACTIVE
09:54:00.710 [nioEventLoopGroup-580-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc731d009, /127.0.0.1:45362 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.711 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.714 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.715 [nioEventLoopGroup-580-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.715 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.715 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 => /127.0.0.1:34418] FLUSH
09:54:00.715 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.715 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 => /127.0.0.1:34418] FLUSH
09:54:00.715 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 :> /127.0.0.1:34418] INACTIVE
09:54:00.715 [nioEventLoopGroup-584-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-584-1
09:54:00.716 [nioEventLoopGroup-580-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2243ef21, /127.0.0.1:45364 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.720 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.721 [nioEventLoopGroup-580-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:00.722 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.722 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 => /127.0.0.1:34418] FLUSH
09:54:00.722 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.722 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 => /127.0.0.1:34418] FLUSH
09:54:00.723 [nioEventLoopGroup-585-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-585-1
09:54:00.723 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 :> /127.0.0.1:34418] INACTIVE
09:54:00.723 [nioEventLoopGroup-580-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x006971ae, /127.0.0.1:45366 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.724 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.727 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.728 [nioEventLoopGroup-580-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:00.728 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.728 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 => /127.0.0.1:34418] FLUSH
09:54:00.728 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.729 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 => /127.0.0.1:34418] FLUSH
09:54:00.729 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 :> /127.0.0.1:34418] INACTIVE
09:54:00.729 [nioEventLoopGroup-580-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0da33e50, /127.0.0.1:45368 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.729 [nioEventLoopGroup-586-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-586-1
09:54:00.734 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.736 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.737 [nioEventLoopGroup-580-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:00.737 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.737 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 => /127.0.0.1:34418] FLUSH
09:54:00.737 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.737 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 => /127.0.0.1:34418] FLUSH
09:54:00.737 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 :> /127.0.0.1:34418] INACTIVE
09:54:00.737 [nioEventLoopGroup-580-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb3c6e83b, /127.0.0.1:45370 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.737 [nioEventLoopGroup-587-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-587-1
09:54:00.739 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.742 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.743 [nioEventLoopGroup-580-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:00.743 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.743 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 => /127.0.0.1:34418] FLUSH
09:54:00.744 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.744 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 => /127.0.0.1:34418] FLUSH
09:54:00.744 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 :> /127.0.0.1:34418] INACTIVE
09:54:00.744 [nioEventLoopGroup-588-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-588-1
09:54:00.744 [nioEventLoopGroup-580-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x65e9efb3, /127.0.0.1:45372 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.746 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.748 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.749 [nioEventLoopGroup-580-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:00.749 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.749 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 => /127.0.0.1:34418] FLUSH
09:54:00.750 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.750 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 => /127.0.0.1:34418] FLUSH
09:54:00.750 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 :> /127.0.0.1:34418] INACTIVE
09:54:00.750 [nioEventLoopGroup-580-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd7f06186, /127.0.0.1:45374 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.750 [nioEventLoopGroup-589-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-589-1
09:54:00.752 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.754 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.755 [nioEventLoopGroup-580-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:00.755 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.755 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 => /127.0.0.1:34418] FLUSH
09:54:00.756 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.756 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 => /127.0.0.1:34418] FLUSH
09:54:00.756 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 :> /127.0.0.1:34418] INACTIVE
09:54:00.756 [nioEventLoopGroup-580-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xaf32a7ab, /127.0.0.1:45376 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.756 [nioEventLoopGroup-590-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-590-1
09:54:00.757 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.759 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.760 [nioEventLoopGroup-580-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:00.760 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.760 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 => /127.0.0.1:34418] FLUSH
09:54:00.760 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.760 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 => /127.0.0.1:34418] FLUSH
09:54:00.760 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 :> /127.0.0.1:34418] INACTIVE
09:54:00.760 [nioEventLoopGroup-591-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-591-1
09:54:00.761 [nioEventLoopGroup-580-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7d729aaa, /127.0.0.1:45378 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.761 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.763 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.764 [nioEventLoopGroup-580-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:00.764 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.764 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 => /127.0.0.1:34418] FLUSH
09:54:00.764 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.765 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 => /127.0.0.1:34418] FLUSH
09:54:00.765 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 :> /127.0.0.1:34418] INACTIVE
09:54:00.765 [nioEventLoopGroup-580-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79b98282, /127.0.0.1:45380 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.765 [nioEventLoopGroup-592-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-592-1
09:54:00.765 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:00.767 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 => /127.0.0.1:34418] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:00.768 [nioEventLoopGroup-580-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:00.768 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.768 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 => /127.0.0.1:34418] FLUSH
09:54:00.769 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.769 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 => /127.0.0.1:34418] FLUSH
09:54:00.769 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 :> /127.0.0.1:34418] INACTIVE
09:54:00.769 [nioEventLoopGroup-580-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8cfb871c, /127.0.0.1:45382 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.769 [nioEventLoopGroup-593-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-593-1
09:54:00.783 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:34418
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:54:00.784 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.784 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.784 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:00.784 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.785 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.786 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.786 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:00.787 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.787 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
09:54:00.787 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] FLUSH
09:54:00.805 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:34418
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
09:54:00.805 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.806 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.806 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:00.806 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.806 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.806 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.807 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.807 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.807 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.807 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.807 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.808 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.808 [nioEventLoopGroup-580-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:00.808 [nioEventLoopGroup-580-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.808 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:54:00.809 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 => /127.0.0.1:34418] FLUSH
09:54:00.818 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:34418
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:54:00.819 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.819 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.819 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:00.820 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.820 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.820 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.820 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.821 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.821 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.821 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.821 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.822 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:00.822 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.822 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
09:54:00.822 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] FLUSH
09:54:00.823 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Host: localhost:34418
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
09:54:00.824 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.824 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.824 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:00.824 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.825 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.825 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.825 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.825 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.826 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.826 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.826 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.827 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:00.827 [nioEventLoopGroup-580-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:00.827 [nioEventLoopGroup-580-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:34418" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:00.828 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:54:00.828 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 => /127.0.0.1:34418] FLUSH
09:54:00.829 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:00.831 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 => /127.0.0.1:34418] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:34418
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:00.831 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 => /127.0.0.1:34418] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:00.831 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 => /127.0.0.1:34418] FLUSH
09:54:00.831 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 => /127.0.0.1:34418] CLOSE()
09:54:00.831 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:00.831 [nioEventLoopGroup-594-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-594-1
09:54:00.836 [nioEventLoopGroup-580-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-1
09:54:00.836 [nioEventLoopGroup-580-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-3
09:54:00.836 [nioEventLoopGroup-580-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-2
09:54:00.836 [nioEventLoopGroup-580-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-6
09:54:00.836 [nioEventLoopGroup-580-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-8
09:54:00.836 [nioEventLoopGroup-580-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-12
09:54:00.836 [nioEventLoopGroup-580-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-9
09:54:00.836 [nioEventLoopGroup-580-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-4
09:54:00.836 [nioEventLoopGroup-580-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-13
09:54:00.836 [nioEventLoopGroup-580-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-5
09:54:00.836 [nioEventLoopGroup-580-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-7
09:54:00.836 [nioEventLoopGroup-580-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-10
09:54:00.837 [nioEventLoopGroup-580-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-11
09:54:00.837 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 :> /127.0.0.1:34418] INACTIVE
09:54:00.837 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 :> /127.0.0.1:34418] INACTIVE
09:54:00.837 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 :> /127.0.0.1:41519] FLUSH
09:54:00.839 [nioEventLoopGroup-580-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x69f1639a, /127.0.0.1:45384 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.839 [nioEventLoopGroup-580-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x30afd4fc, /127.0.0.1:45386 :> /127.0.0.1:34418] UNREGISTERED
09:54:00.839 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 :> /127.0.0.1:41519] INACTIVE
09:54:00.839 [nioEventLoopGroup-564-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d42f056, /127.0.0.1:52716 :> /127.0.0.1:41519] UNREGISTERED
09:54:00.839 [nioEventLoopGroup-564-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-15
09:54:00.908 [nioEventLoopGroup-548-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-15
09:54:00.908 [nioEventLoopGroup-548-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-548-14
09:54:01.190 [MockServer thread for port: 46319] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 46319
09:54:01.190 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.194 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.195 [nioEventLoopGroup-596-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.196 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.196 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 => /127.0.0.1:46319] FLUSH
09:54:01.196 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.196 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 => /127.0.0.1:46319] FLUSH
09:54:01.196 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 :> /127.0.0.1:46319] INACTIVE
09:54:01.196 [nioEventLoopGroup-597-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-597-1
09:54:01.197 [nioEventLoopGroup-596-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x02a6bb04, /127.0.0.1:52650 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.198 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.201 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.203 [nioEventLoopGroup-596-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:01.203 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.203 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 => /127.0.0.1:46319] FLUSH
09:54:01.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.203 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 => /127.0.0.1:46319] FLUSH
09:54:01.203 [nioEventLoopGroup-598-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-598-1
09:54:01.204 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 :> /127.0.0.1:46319] INACTIVE
09:54:01.204 [nioEventLoopGroup-596-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x97e312d0, /127.0.0.1:52652 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.205 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.207 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.209 [nioEventLoopGroup-596-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:01.209 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.209 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 => /127.0.0.1:46319] FLUSH
09:54:01.210 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.210 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 => /127.0.0.1:46319] FLUSH
09:54:01.210 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 :> /127.0.0.1:46319] INACTIVE
09:54:01.210 [nioEventLoopGroup-596-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3c3714fd, /127.0.0.1:52654 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.210 [nioEventLoopGroup-599-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-599-1
09:54:01.211 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.214 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.215 [nioEventLoopGroup-596-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.216 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.216 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 => /127.0.0.1:46319] FLUSH
09:54:01.216 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.216 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 => /127.0.0.1:46319] FLUSH
09:54:01.216 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 :> /127.0.0.1:46319] INACTIVE
09:54:01.216 [nioEventLoopGroup-596-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4974608f, /127.0.0.1:52656 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.216 [nioEventLoopGroup-600-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-600-1
09:54:01.218 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.221 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.222 [nioEventLoopGroup-596-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:01.222 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.222 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 => /127.0.0.1:46319] FLUSH
09:54:01.222 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.222 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 => /127.0.0.1:46319] FLUSH
09:54:01.223 [nioEventLoopGroup-601-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-601-1
09:54:01.223 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 :> /127.0.0.1:46319] INACTIVE
09:54:01.223 [nioEventLoopGroup-596-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36177db9, /127.0.0.1:52658 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.224 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.227 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.228 [nioEventLoopGroup-596-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:01.228 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.228 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 => /127.0.0.1:46319] FLUSH
09:54:01.228 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.228 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 => /127.0.0.1:46319] FLUSH
09:54:01.228 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 :> /127.0.0.1:46319] INACTIVE
09:54:01.228 [nioEventLoopGroup-596-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x18a600b0, /127.0.0.1:52660 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.228 [nioEventLoopGroup-602-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-602-1
09:54:01.229 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.231 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.232 [nioEventLoopGroup-596-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:01.232 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.232 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 => /127.0.0.1:46319] FLUSH
09:54:01.233 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.233 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 => /127.0.0.1:46319] FLUSH
09:54:01.233 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 :> /127.0.0.1:46319] INACTIVE
09:54:01.233 [nioEventLoopGroup-603-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-603-1
09:54:01.233 [nioEventLoopGroup-596-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4f92fcb3, /127.0.0.1:52662 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.234 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.236 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.237 [nioEventLoopGroup-596-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:01.237 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.237 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 => /127.0.0.1:46319] FLUSH
09:54:01.237 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.237 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 => /127.0.0.1:46319] FLUSH
09:54:01.238 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 :> /127.0.0.1:46319] INACTIVE
09:54:01.238 [nioEventLoopGroup-596-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbb3c6eca, /127.0.0.1:52664 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.238 [nioEventLoopGroup-604-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-604-1
09:54:01.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.241 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.242 [nioEventLoopGroup-596-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:01.242 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.242 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 => /127.0.0.1:46319] FLUSH
09:54:01.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.242 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 => /127.0.0.1:46319] FLUSH
09:54:01.242 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 :> /127.0.0.1:46319] INACTIVE
09:54:01.242 [nioEventLoopGroup-596-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa8b3a711, /127.0.0.1:52666 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.242 [nioEventLoopGroup-605-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-605-1
09:54:01.243 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.245 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.246 [nioEventLoopGroup-596-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:01.246 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.246 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 => /127.0.0.1:46319] FLUSH
09:54:01.246 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.246 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 => /127.0.0.1:46319] FLUSH
09:54:01.246 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 :> /127.0.0.1:46319] INACTIVE
09:54:01.246 [nioEventLoopGroup-606-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-606-1
09:54:01.246 [nioEventLoopGroup-596-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2399488d, /127.0.0.1:52668 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.247 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.249 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.250 [nioEventLoopGroup-596-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:01.250 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.250 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 => /127.0.0.1:46319] FLUSH
09:54:01.250 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.250 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 => /127.0.0.1:46319] FLUSH
09:54:01.250 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 :> /127.0.0.1:46319] INACTIVE
09:54:01.250 [nioEventLoopGroup-596-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xebc38ad3, /127.0.0.1:52670 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.250 [nioEventLoopGroup-607-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-607-1
09:54:01.251 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.253 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.254 [nioEventLoopGroup-596-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:01.254 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.254 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 => /127.0.0.1:46319] FLUSH
09:54:01.254 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.254 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 => /127.0.0.1:46319] FLUSH
09:54:01.255 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 :> /127.0.0.1:46319] INACTIVE
09:54:01.255 [nioEventLoopGroup-596-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xf34bce16, /127.0.0.1:52672 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.255 [nioEventLoopGroup-608-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-608-1
09:54:01.256 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.258 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 => /127.0.0.1:46319] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.258 [nioEventLoopGroup-596-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.259 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.259 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 => /127.0.0.1:46319] FLUSH
09:54:01.259 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.259 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 => /127.0.0.1:46319] FLUSH
09:54:01.259 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 :> /127.0.0.1:46319] INACTIVE
09:54:01.259 [nioEventLoopGroup-596-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1f149949, /127.0.0.1:52674 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.259 [nioEventLoopGroup-609-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-609-1
09:54:01.261 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 => /127.0.0.1:46319] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46319
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:54:01.262 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.262 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.262 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:01.263 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.263 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.263 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.263 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.264 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.264 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.264 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.265 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.265 [nioEventLoopGroup-596-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:01.266 [nioEventLoopGroup-596-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:01.266 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="Test Realm"
Content-Length: 0
Connection: keep-alive, 0B
09:54:01.266 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 => /127.0.0.1:46319] FLUSH
09:54:01.270 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 => /127.0.0.1:46319] FLUSH
09:54:01.270 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 :> /127.0.0.1:46319] INACTIVE
09:54:01.270 [nioEventLoopGroup-596-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd0b89383, /127.0.0.1:52676 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.271 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46319
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
09:54:01.271 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.272 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.272 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:01.272 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.272 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.273 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.273 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.273 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.273 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.273 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.274 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.274 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.275 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:01.275 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:01.275 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:54:01.275 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] FLUSH
09:54:01.277 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /basic HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:46319
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Authorization: Basic YWRtaW46JDNjcjN0
Content-Length: 0, 0B
09:54:01.278 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.278 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.278 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:01.278 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.279 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.279 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.279 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/date"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.279 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status200"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.279 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status300"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.280 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status400"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.280 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/status500"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.280 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
}
because:
method matches = true
path matches = true
query string parameters match = true
body matches = true
headers match = false
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.281 [nioEventLoopGroup-596-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
}
09:54:01.281 [nioEventLoopGroup-596-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
for request:
{
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:46319" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:01.281 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 119, cap: 119/119))
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 119
Connection: keep-alive, 119B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 3c 68 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d |<html><body><!--|
|00000010| 20 61 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c | a bunch of real|
|00000020| 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 |ly interesting c|
|00000030| 6f 6e 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 |ontent that you |
|00000040| 77 6f 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 |would be sorry t|
|00000050| 6f 20 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e |o miss -->Nothin|
|00000060| 67 20 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e |g special</body>|
|00000070| 3c 2f 68 74 6d 6c 3e |</html> |
+--------+-------------------------------------------------+----------------+
09:54:01.281 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 => /127.0.0.1:46319] FLUSH
09:54:01.282 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:01.284 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 => /127.0.0.1:46319] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:46319
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:01.284 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 => /127.0.0.1:46319] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.284 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 => /127.0.0.1:46319] FLUSH
09:54:01.284 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 => /127.0.0.1:46319] CLOSE()
09:54:01.284 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.286 [nioEventLoopGroup-610-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-610-1
09:54:01.287 [nioEventLoopGroup-596-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-2
09:54:01.287 [nioEventLoopGroup-596-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-1
09:54:01.287 [nioEventLoopGroup-596-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-7
09:54:01.287 [nioEventLoopGroup-596-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-12
09:54:01.287 [nioEventLoopGroup-596-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-11
09:54:01.287 [nioEventLoopGroup-596-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-14
09:54:01.287 [nioEventLoopGroup-596-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-8
09:54:01.287 [nioEventLoopGroup-596-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-6
09:54:01.287 [nioEventLoopGroup-596-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-10
09:54:01.287 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 :> /127.0.0.1:46319] INACTIVE
09:54:01.287 [nioEventLoopGroup-596-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-13
09:54:01.287 [nioEventLoopGroup-596-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-9
09:54:01.287 [nioEventLoopGroup-596-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-5
09:54:01.287 [nioEventLoopGroup-596-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-4
09:54:01.287 [nioEventLoopGroup-596-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-3
09:54:01.287 [nioEventLoopGroup-596-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfb3844c6, /127.0.0.1:52678 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.336 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 :> /127.0.0.1:34418] FLUSH
09:54:01.337 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 :> /127.0.0.1:34418] INACTIVE
09:54:01.337 [nioEventLoopGroup-580-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x734283e9, /127.0.0.1:45388 :> /127.0.0.1:34418] UNREGISTERED
09:54:01.337 [nioEventLoopGroup-580-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-16
09:54:01.338 [nioEventLoopGroup-564-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-564-14
09:54:01.643 [MockServer thread for port: 45168] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 45168
09:54:01.644 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.648 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.649 [nioEventLoopGroup-612-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.649 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.649 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 => /127.0.0.1:45168] FLUSH
09:54:01.650 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.650 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 => /127.0.0.1:45168] FLUSH
09:54:01.651 [nioEventLoopGroup-613-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-613-1
09:54:01.651 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 :> /127.0.0.1:45168] INACTIVE
09:54:01.651 [nioEventLoopGroup-612-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdf77c4ba, /127.0.0.1:59896 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.652 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.655 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.657 [nioEventLoopGroup-612-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:01.657 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.657 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 => /127.0.0.1:45168] FLUSH
09:54:01.658 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.658 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 => /127.0.0.1:45168] FLUSH
09:54:01.658 [nioEventLoopGroup-614-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-614-1
09:54:01.658 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 :> /127.0.0.1:45168] INACTIVE
09:54:01.658 [nioEventLoopGroup-612-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdd3ea13d, /127.0.0.1:59898 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.675 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.678 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.680 [nioEventLoopGroup-612-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:01.680 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.680 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 => /127.0.0.1:45168] FLUSH
09:54:01.680 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.680 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 => /127.0.0.1:45168] FLUSH
09:54:01.681 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 :> /127.0.0.1:45168] INACTIVE
09:54:01.681 [nioEventLoopGroup-615-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-615-1
09:54:01.681 [nioEventLoopGroup-612-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3168ef4, /127.0.0.1:59902 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.682 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.684 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.685 [nioEventLoopGroup-612-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.685 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.686 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 => /127.0.0.1:45168] FLUSH
09:54:01.686 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.686 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 => /127.0.0.1:45168] FLUSH
09:54:01.686 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 :> /127.0.0.1:45168] INACTIVE
09:54:01.686 [nioEventLoopGroup-616-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-616-1
09:54:01.686 [nioEventLoopGroup-612-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa73140c7, /127.0.0.1:59904 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.687 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.689 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.690 [nioEventLoopGroup-612-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:01.690 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.690 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 => /127.0.0.1:45168] FLUSH
09:54:01.691 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.691 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 => /127.0.0.1:45168] FLUSH
09:54:01.691 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 :> /127.0.0.1:45168] INACTIVE
09:54:01.691 [nioEventLoopGroup-612-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x559778c1, /127.0.0.1:59906 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.691 [nioEventLoopGroup-617-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-617-1
09:54:01.692 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.695 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.696 [nioEventLoopGroup-612-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:01.696 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.696 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 => /127.0.0.1:45168] FLUSH
09:54:01.697 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 => /127.0.0.1:45168] FLUSH
09:54:01.697 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.697 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 :> /127.0.0.1:45168] INACTIVE
09:54:01.697 [nioEventLoopGroup-612-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x36b9d287, /127.0.0.1:59908 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.697 [nioEventLoopGroup-618-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-618-1
09:54:01.698 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.701 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.702 [nioEventLoopGroup-612-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:01.702 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.702 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 => /127.0.0.1:45168] FLUSH
09:54:01.702 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.702 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 => /127.0.0.1:45168] FLUSH
09:54:01.702 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 :> /127.0.0.1:45168] INACTIVE
09:54:01.702 [nioEventLoopGroup-612-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xbae8c8bd, /127.0.0.1:59910 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.702 [nioEventLoopGroup-619-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-619-1
09:54:01.703 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.705 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.706 [nioEventLoopGroup-612-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:01.706 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.706 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 => /127.0.0.1:45168] FLUSH
09:54:01.707 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.707 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 => /127.0.0.1:45168] FLUSH
09:54:01.707 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 :> /127.0.0.1:45168] INACTIVE
09:54:01.707 [nioEventLoopGroup-620-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-620-1
09:54:01.707 [nioEventLoopGroup-612-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcad0d45d, /127.0.0.1:59912 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.708 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.710 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.711 [nioEventLoopGroup-612-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:01.711 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.712 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 => /127.0.0.1:45168] FLUSH
09:54:01.712 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.712 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 => /127.0.0.1:45168] FLUSH
09:54:01.712 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 :> /127.0.0.1:45168] INACTIVE
09:54:01.712 [nioEventLoopGroup-612-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xac887035, /127.0.0.1:59914 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.712 [nioEventLoopGroup-621-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-621-1
09:54:01.714 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.716 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.716 [nioEventLoopGroup-612-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:01.716 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.716 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 => /127.0.0.1:45168] FLUSH
09:54:01.717 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.717 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 => /127.0.0.1:45168] FLUSH
09:54:01.717 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 :> /127.0.0.1:45168] INACTIVE
09:54:01.717 [nioEventLoopGroup-612-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x233ec831, /127.0.0.1:59916 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.717 [nioEventLoopGroup-622-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-622-1
09:54:01.718 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.719 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.720 [nioEventLoopGroup-612-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:01.720 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.720 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 => /127.0.0.1:45168] FLUSH
09:54:01.720 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.720 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 => /127.0.0.1:45168] FLUSH
09:54:01.721 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 :> /127.0.0.1:45168] INACTIVE
09:54:01.721 [nioEventLoopGroup-612-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x2c663b1e, /127.0.0.1:59918 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.721 [nioEventLoopGroup-623-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-623-1
09:54:01.721 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.723 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.724 [nioEventLoopGroup-612-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:01.724 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.724 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 => /127.0.0.1:45168] FLUSH
09:54:01.725 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.725 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 => /127.0.0.1:45168] FLUSH
09:54:01.725 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 :> /127.0.0.1:45168] INACTIVE
09:54:01.725 [nioEventLoopGroup-624-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-624-1
09:54:01.725 [nioEventLoopGroup-612-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0c16703, /127.0.0.1:59920 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.726 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:01.728 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 => /127.0.0.1:45168] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:01.730 [nioEventLoopGroup-612-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:01.730 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.730 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 => /127.0.0.1:45168] FLUSH
09:54:01.730 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.730 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 => /127.0.0.1:45168] FLUSH
09:54:01.730 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 :> /127.0.0.1:45168] INACTIVE
09:54:01.730 [nioEventLoopGroup-612-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x3fa48b48, /127.0.0.1:59922 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.731 [nioEventLoopGroup-625-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-625-1
09:54:01.739 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48e87140, /127.0.0.1:59924 => /127.0.0.1:45168] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:45168
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:54:01.740 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.740 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.740 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:01.740 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.740 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.741 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.741 [nioEventLoopGroup-612-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
09:54:01.741 [nioEventLoopGroup-612-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:01.741 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48e87140, /127.0.0.1:59924 => /127.0.0.1:45168] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
09:54:01.741 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48e87140, /127.0.0.1:59924 => /127.0.0.1:45168] FLUSH
09:54:01.758 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cd12d3, /127.0.0.1:59926 => /127.0.0.1:45168] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Host: localhost:45168
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_91)
Accept-Encoding: gzip,deflate
Content-Length: 0, 0B
09:54:01.758 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.759 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.759 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:01.759 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.759 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.760 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:01.760 [nioEventLoopGroup-612-15] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "Connection",
"values" : [ "Keep-Alive" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
09:54:01.760 [nioEventLoopGroup-612-15] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Host",
"values" : [ "localhost:45168" ]
}, {
"name" : "User-Agent",
"values" : [ "Apache-HttpClient/4.5.2 (Java/1.8.0_91)" ]
}, {
"name" : "Accept-Encoding",
"values" : [ "gzip,deflate" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:01.760 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cd12d3, /127.0.0.1:59926 => /127.0.0.1:45168] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
09:54:01.761 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cd12d3, /127.0.0.1:59926 => /127.0.0.1:45168] FLUSH
09:54:01.762 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:01.765 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 => /127.0.0.1:45168] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:45168
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:01.765 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 => /127.0.0.1:45168] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:01.765 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 => /127.0.0.1:45168] FLUSH
09:54:01.765 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 => /127.0.0.1:45168] CLOSE()
09:54:01.765 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:01.766 [nioEventLoopGroup-626-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-626-1
09:54:01.771 [nioEventLoopGroup-612-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-4
09:54:01.771 [nioEventLoopGroup-612-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-3
09:54:01.771 [nioEventLoopGroup-612-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-1
09:54:01.771 [nioEventLoopGroup-612-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-2
09:54:01.771 [nioEventLoopGroup-612-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-7
09:54:01.771 [nioEventLoopGroup-612-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-6
09:54:01.772 [nioEventLoopGroup-612-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-8
09:54:01.772 [nioEventLoopGroup-612-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-12
09:54:01.772 [nioEventLoopGroup-612-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-5
09:54:01.772 [nioEventLoopGroup-612-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-9
09:54:01.772 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48e87140, /127.0.0.1:59924 :> /127.0.0.1:45168] INACTIVE
09:54:01.772 [nioEventLoopGroup-612-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-10
09:54:01.772 [nioEventLoopGroup-612-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-11
09:54:01.772 [nioEventLoopGroup-612-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-13
09:54:01.772 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cd12d3, /127.0.0.1:59926 :> /127.0.0.1:45168] INACTIVE
09:54:01.772 [nioEventLoopGroup-612-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x48e87140, /127.0.0.1:59924 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.772 [nioEventLoopGroup-612-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x53cd12d3, /127.0.0.1:59926 :> /127.0.0.1:45168] UNREGISTERED
09:54:01.787 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 :> /127.0.0.1:46319] FLUSH
09:54:01.787 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 :> /127.0.0.1:46319] INACTIVE
09:54:01.787 [nioEventLoopGroup-596-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa39237ca, /127.0.0.1:52680 :> /127.0.0.1:46319] UNREGISTERED
09:54:01.787 [nioEventLoopGroup-596-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-16
09:54:01.840 [nioEventLoopGroup-580-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-15
09:54:01.840 [nioEventLoopGroup-580-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-580-14
09:54:02.121 [MockServer thread for port: 38324] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 38324
09:54:02.122 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.125 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.126 [nioEventLoopGroup-628-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.127 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.127 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 => /127.0.0.1:38324] FLUSH
09:54:02.127 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.128 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 => /127.0.0.1:38324] FLUSH
09:54:02.128 [nioEventLoopGroup-629-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-629-1
09:54:02.128 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 :> /127.0.0.1:38324] INACTIVE
09:54:02.128 [nioEventLoopGroup-628-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe8b04e83, /127.0.0.1:54604 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.129 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.132 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.133 [nioEventLoopGroup-628-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:02.133 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.133 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 => /127.0.0.1:38324] FLUSH
09:54:02.133 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.134 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 => /127.0.0.1:38324] FLUSH
09:54:02.134 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 :> /127.0.0.1:38324] INACTIVE
09:54:02.134 [nioEventLoopGroup-630-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-630-1
09:54:02.134 [nioEventLoopGroup-628-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x890a07a2, /127.0.0.1:54606 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.135 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.137 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.138 [nioEventLoopGroup-628-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:02.138 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.138 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 => /127.0.0.1:38324] FLUSH
09:54:02.138 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.139 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 => /127.0.0.1:38324] FLUSH
09:54:02.139 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 :> /127.0.0.1:38324] INACTIVE
09:54:02.139 [nioEventLoopGroup-628-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x92fbe585, /127.0.0.1:54608 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.139 [nioEventLoopGroup-631-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-631-1
09:54:02.140 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.142 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.142 [nioEventLoopGroup-628-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.143 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.143 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 => /127.0.0.1:38324] FLUSH
09:54:02.143 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.143 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 => /127.0.0.1:38324] FLUSH
09:54:02.143 [nioEventLoopGroup-632-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-632-1
09:54:02.143 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 :> /127.0.0.1:38324] INACTIVE
09:54:02.143 [nioEventLoopGroup-628-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xde4256dc, /127.0.0.1:54610 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.148 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.150 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.151 [nioEventLoopGroup-628-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:02.151 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.151 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 => /127.0.0.1:38324] FLUSH
09:54:02.152 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.152 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 => /127.0.0.1:38324] FLUSH
09:54:02.152 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 :> /127.0.0.1:38324] INACTIVE
09:54:02.152 [nioEventLoopGroup-633-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-633-1
09:54:02.152 [nioEventLoopGroup-628-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa0a143b5, /127.0.0.1:54612 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.153 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.156 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.156 [nioEventLoopGroup-628-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:02.157 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.157 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 => /127.0.0.1:38324] FLUSH
09:54:02.157 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.157 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 => /127.0.0.1:38324] FLUSH
09:54:02.157 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 :> /127.0.0.1:38324] INACTIVE
09:54:02.157 [nioEventLoopGroup-628-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x50aa9ab4, /127.0.0.1:54614 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.157 [nioEventLoopGroup-634-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-634-1
09:54:02.164 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.166 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.166 [nioEventLoopGroup-628-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:02.167 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.167 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 => /127.0.0.1:38324] FLUSH
09:54:02.167 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.167 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 => /127.0.0.1:38324] FLUSH
09:54:02.167 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 :> /127.0.0.1:38324] INACTIVE
09:54:02.167 [nioEventLoopGroup-628-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6d7e5987, /127.0.0.1:54616 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.167 [nioEventLoopGroup-635-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-635-1
09:54:02.168 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.170 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.170 [nioEventLoopGroup-628-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:02.170 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.170 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 => /127.0.0.1:38324] FLUSH
09:54:02.170 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.170 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 => /127.0.0.1:38324] FLUSH
09:54:02.171 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 :> /127.0.0.1:38324] INACTIVE
09:54:02.171 [nioEventLoopGroup-636-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-636-1
09:54:02.171 [nioEventLoopGroup-628-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x0a8e835c, /127.0.0.1:54618 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.171 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.173 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.173 [nioEventLoopGroup-628-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:02.173 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.173 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 => /127.0.0.1:38324] FLUSH
09:54:02.173 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.173 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 => /127.0.0.1:38324] FLUSH
09:54:02.174 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 :> /127.0.0.1:38324] INACTIVE
09:54:02.174 [nioEventLoopGroup-628-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xae2be96a, /127.0.0.1:54620 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.174 [nioEventLoopGroup-637-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-637-1
09:54:02.174 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.176 [nioEventLoopGroup-628-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 => /127.0.0.1:38324] FLUSH
09:54:02.176 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 => /127.0.0.1:38324] FLUSH
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 :> /127.0.0.1:38324] INACTIVE
09:54:02.176 [nioEventLoopGroup-628-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xe5859cc4, /127.0.0.1:54622 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.176 [nioEventLoopGroup-638-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-638-1
09:54:02.177 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.178 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.179 [nioEventLoopGroup-628-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:02.179 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.179 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 => /127.0.0.1:38324] FLUSH
09:54:02.179 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.179 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 => /127.0.0.1:38324] FLUSH
09:54:02.179 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 :> /127.0.0.1:38324] INACTIVE
09:54:02.180 [nioEventLoopGroup-628-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x032d2619, /127.0.0.1:54624 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.180 [nioEventLoopGroup-639-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-639-1
09:54:02.180 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.182 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.183 [nioEventLoopGroup-628-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:02.183 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.183 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 => /127.0.0.1:38324] FLUSH
09:54:02.183 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.183 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 => /127.0.0.1:38324] FLUSH
09:54:02.184 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 :> /127.0.0.1:38324] INACTIVE
09:54:02.184 [nioEventLoopGroup-628-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x14aa8708, /127.0.0.1:54626 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.184 [nioEventLoopGroup-640-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-640-1
09:54:02.184 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.186 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 => /127.0.0.1:38324] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.187 [nioEventLoopGroup-628-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.187 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.187 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 => /127.0.0.1:38324] FLUSH
09:54:02.187 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.187 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 => /127.0.0.1:38324] FLUSH
09:54:02.187 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 :> /127.0.0.1:38324] INACTIVE
09:54:02.187 [nioEventLoopGroup-628-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xad4a6231, /127.0.0.1:54628 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.187 [nioEventLoopGroup-641-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-641-1
09:54:02.190 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38324
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:54:02.190 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.191 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
09:54:02.192 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:02.192 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
09:54:02.192 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] FLUSH
09:54:02.197 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
GET /date HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Java/1.8.0_91
Host: localhost:38324
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 0, 0B
09:54:02.197 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.197 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
}
because:
method matches = true
path matches = false
query string parameters match = false
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.198 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = false
keep-alive matches = true
ssl matches = true
09:54:02.198 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/foo"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.198 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/xml"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.198 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
did not match expectation:
{
"method" : "GET",
"path" : "/json"
}
because:
method matches = true
path matches = false
query string parameters match = true
body matches = true
headers match = true
cookies match = true
keep-alive matches = true
ssl matches = true
09:54:02.198 [nioEventLoopGroup-628-14] INFO o.m.matchers.HttpRequestMatcher - request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
matched expectation:
{
"method" : "GET",
"path" : "/date"
}
09:54:02.199 [nioEventLoopGroup-628-14] INFO o.m.mockserver.MockServerHandler - returning response:
{
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
for request:
{
"method" : "GET",
"path" : "/date",
"headers" : [ {
"name" : "Accept-Encoding",
"values" : [ "gzip, deflate" ]
}, {
"name" : "User-Agent",
"values" : [ "Java/1.8.0_91" ]
}, {
"name" : "Host",
"values" : [ "localhost:38324" ]
}, {
"name" : "Accept",
"values" : [ "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
} ],
"keepAlive" : true,
"secure" : false
}
09:54:02.199 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] WRITE: DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: UnpooledHeapByteBuf(ridx: 0, widx: 16, cap: 16/16))
HTTP/1.1 200 OK
Content-Type: text/date
Content-Length: 16
Connection: keep-alive, 16B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 32 30 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 |2016.08.25 14:43|
+--------+-------------------------------------------------+----------------+
09:54:02.199 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 => /127.0.0.1:38324] FLUSH
09:54:02.200 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:02.202 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 => /127.0.0.1:38324] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:38324
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:02.202 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 => /127.0.0.1:38324] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.202 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 => /127.0.0.1:38324] FLUSH
09:54:02.202 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 => /127.0.0.1:38324] CLOSE()
09:54:02.203 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.203 [nioEventLoopGroup-642-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-642-1
09:54:02.203 [nioEventLoopGroup-628-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-2
09:54:02.203 [nioEventLoopGroup-628-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-1
09:54:02.204 [nioEventLoopGroup-628-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-3
09:54:02.204 [nioEventLoopGroup-628-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-4
09:54:02.204 [nioEventLoopGroup-628-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-5
09:54:02.204 [nioEventLoopGroup-628-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-7
09:54:02.204 [nioEventLoopGroup-628-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-6
09:54:02.204 [nioEventLoopGroup-628-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-8
09:54:02.204 [nioEventLoopGroup-628-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-9
09:54:02.204 [nioEventLoopGroup-628-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-10
09:54:02.204 [nioEventLoopGroup-628-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-11
09:54:02.204 [nioEventLoopGroup-628-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-13
09:54:02.204 [nioEventLoopGroup-628-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-12
09:54:02.204 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 :> /127.0.0.1:38324] INACTIVE
09:54:02.204 [nioEventLoopGroup-628-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9028c22a, /127.0.0.1:54630 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.272 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 :> /127.0.0.1:45168] FLUSH
09:54:02.272 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 :> /127.0.0.1:45168] INACTIVE
09:54:02.272 [nioEventLoopGroup-612-16] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xd37eb058, /127.0.0.1:59928 :> /127.0.0.1:45168] UNREGISTERED
09:54:02.272 [nioEventLoopGroup-612-16] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-16
09:54:02.289 [nioEventLoopGroup-596-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-596-15
09:54:02.557 [MockServer thread for port: 33697] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 33697
09:54:02.558 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.561 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.563 [nioEventLoopGroup-644-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.564 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.564 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 => /127.0.0.1:33697] FLUSH
09:54:02.565 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.565 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 => /127.0.0.1:33697] FLUSH
09:54:02.565 [nioEventLoopGroup-645-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-645-1
09:54:02.565 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 :> /127.0.0.1:33697] INACTIVE
09:54:02.565 [nioEventLoopGroup-644-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xb461cee1, /127.0.0.1:38340 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.566 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.568 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.568 [nioEventLoopGroup-644-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:02.568 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.568 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 => /127.0.0.1:33697] FLUSH
09:54:02.568 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.569 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 => /127.0.0.1:33697] FLUSH
09:54:02.569 [nioEventLoopGroup-646-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-646-1
09:54:02.569 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 :> /127.0.0.1:33697] INACTIVE
09:54:02.569 [nioEventLoopGroup-644-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x16164bb6, /127.0.0.1:38342 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.570 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.571 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.572 [nioEventLoopGroup-644-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:02.572 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.572 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 => /127.0.0.1:33697] FLUSH
09:54:02.572 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.572 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 => /127.0.0.1:33697] FLUSH
09:54:02.572 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 :> /127.0.0.1:33697] INACTIVE
09:54:02.572 [nioEventLoopGroup-644-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x7f8722a4, /127.0.0.1:38344 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.572 [nioEventLoopGroup-647-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-647-1
09:54:02.573 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.574 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.575 [nioEventLoopGroup-644-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.575 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.575 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 => /127.0.0.1:33697] FLUSH
09:54:02.575 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.575 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 => /127.0.0.1:33697] FLUSH
09:54:02.575 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 :> /127.0.0.1:33697] INACTIVE
09:54:02.575 [nioEventLoopGroup-648-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-648-1
09:54:02.575 [nioEventLoopGroup-644-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x75848a97, /127.0.0.1:38346 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.576 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.577 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.578 [nioEventLoopGroup-644-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:02.578 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.578 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 => /127.0.0.1:33697] FLUSH
09:54:02.578 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.578 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 => /127.0.0.1:33697] FLUSH
09:54:02.578 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 :> /127.0.0.1:33697] INACTIVE
09:54:02.578 [nioEventLoopGroup-644-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x871d0663, /127.0.0.1:38348 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.578 [nioEventLoopGroup-649-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-649-1
09:54:02.579 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.581 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.581 [nioEventLoopGroup-644-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:02.582 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.582 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 => /127.0.0.1:33697] FLUSH
09:54:02.582 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.582 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 => /127.0.0.1:33697] FLUSH
09:54:02.582 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 :> /127.0.0.1:33697] INACTIVE
09:54:02.582 [nioEventLoopGroup-644-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xeddaac98, /127.0.0.1:38350 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.582 [nioEventLoopGroup-650-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-650-1
09:54:02.584 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.586 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.587 [nioEventLoopGroup-644-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:02.587 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.587 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 => /127.0.0.1:33697] FLUSH
09:54:02.587 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.587 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 => /127.0.0.1:33697] FLUSH
09:54:02.587 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 :> /127.0.0.1:33697] INACTIVE
09:54:02.588 [nioEventLoopGroup-644-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x93401069, /127.0.0.1:38352 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.588 [nioEventLoopGroup-651-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-651-1
09:54:02.589 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.591 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.591 [nioEventLoopGroup-644-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:02.592 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.592 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 => /127.0.0.1:33697] FLUSH
09:54:02.592 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.592 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 => /127.0.0.1:33697] FLUSH
09:54:02.592 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 :> /127.0.0.1:33697] INACTIVE
09:54:02.592 [nioEventLoopGroup-652-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-652-1
09:54:02.592 [nioEventLoopGroup-644-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa288bae4, /127.0.0.1:38354 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.593 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.594 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.595 [nioEventLoopGroup-644-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:02.595 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.595 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 => /127.0.0.1:33697] FLUSH
09:54:02.595 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.595 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 => /127.0.0.1:33697] FLUSH
09:54:02.596 [nioEventLoopGroup-653-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-653-1
09:54:02.596 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 :> /127.0.0.1:33697] INACTIVE
09:54:02.596 [nioEventLoopGroup-644-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x29a3290d, /127.0.0.1:38356 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.598 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.600 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.600 [nioEventLoopGroup-644-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:02.600 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.601 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 => /127.0.0.1:33697] FLUSH
09:54:02.601 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.601 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 => /127.0.0.1:33697] FLUSH
09:54:02.601 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 :> /127.0.0.1:33697] INACTIVE
09:54:02.601 [nioEventLoopGroup-644-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6ed2ea94, /127.0.0.1:38358 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.601 [nioEventLoopGroup-654-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-654-1
09:54:02.602 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.603 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.604 [nioEventLoopGroup-644-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:02.604 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.604 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 => /127.0.0.1:33697] FLUSH
09:54:02.604 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.604 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 => /127.0.0.1:33697] FLUSH
09:54:02.604 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 :> /127.0.0.1:33697] INACTIVE
09:54:02.604 [nioEventLoopGroup-644-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x326e9647, /127.0.0.1:38360 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.604 [nioEventLoopGroup-655-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-655-1
09:54:02.605 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.607 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.607 [nioEventLoopGroup-644-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:02.608 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.608 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 => /127.0.0.1:33697] FLUSH
09:54:02.608 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.608 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 => /127.0.0.1:33697] FLUSH
09:54:02.608 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 :> /127.0.0.1:33697] INACTIVE
09:54:02.608 [nioEventLoopGroup-644-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa3412466, /127.0.0.1:38364 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.608 [nioEventLoopGroup-656-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-656-1
09:54:02.609 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:02.610 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 => /127.0.0.1:33697] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:02.611 [nioEventLoopGroup-644-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:02.611 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:02.611 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 => /127.0.0.1:33697] FLUSH
09:54:02.611 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:02.611 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 => /127.0.0.1:33697] FLUSH
09:54:02.611 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 :> /127.0.0.1:33697] INACTIVE
09:54:02.611 [nioEventLoopGroup-644-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x79cbac85, /127.0.0.1:38366 :> /127.0.0.1:33697] UNREGISTERED
09:54:02.611 [nioEventLoopGroup-657-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-657-1
09:54:02.704 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 :> /127.0.0.1:38324] FLUSH
09:54:02.705 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 :> /127.0.0.1:38324] INACTIVE
09:54:02.705 [nioEventLoopGroup-628-15] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x282ea503, /127.0.0.1:54632 :> /127.0.0.1:38324] UNREGISTERED
09:54:02.705 [nioEventLoopGroup-628-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-15
09:54:02.773 [nioEventLoopGroup-612-15] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-15
09:54:02.773 [nioEventLoopGroup-612-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-612-14
09:54:03.206 [nioEventLoopGroup-628-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-628-14
09:54:14.940 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:14.943 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 => /127.0.0.1:33697] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:33697
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:14.944 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 => /127.0.0.1:33697] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:14.944 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 => /127.0.0.1:33697] FLUSH
09:54:14.944 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 => /127.0.0.1:33697] CLOSE()
09:54:14.944 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:14.945 [nioEventLoopGroup-658-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-658-1
09:54:14.948 [nioEventLoopGroup-644-2] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-2
09:54:14.948 [nioEventLoopGroup-644-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-1
09:54:14.948 [nioEventLoopGroup-644-4] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-4
09:54:14.948 [nioEventLoopGroup-644-3] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-3
09:54:14.948 [nioEventLoopGroup-644-9] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-9
09:54:14.948 [nioEventLoopGroup-644-5] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-5
09:54:14.948 [nioEventLoopGroup-644-10] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-10
09:54:14.948 [nioEventLoopGroup-644-7] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-7
09:54:14.948 [nioEventLoopGroup-644-11] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-11
09:54:14.948 [nioEventLoopGroup-644-8] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-8
09:54:14.948 [nioEventLoopGroup-644-6] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-6
09:54:14.948 [nioEventLoopGroup-644-12] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-12
09:54:14.948 [nioEventLoopGroup-644-13] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-13
09:54:15.300 [MockServer thread for port: 36901] INFO org.mockserver.mockserver.MockServer - MockServer started on port: 36901
09:54:15.300 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.304 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 460, cap: 460, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 460
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 460B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 22 0a 20 20 7d |"path" : "/". }|
|00000040| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|00000050| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|00000060| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|00000070| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|00000080| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000090| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|000000a0| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|000000b0| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|000000c0| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|000000d0| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|000000e0| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|000000f0| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000100| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000110| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000120| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|00000130| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|00000140| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|00000150| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|00000160| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|00000170| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|00000180| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000190| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|000001a0| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|000001b0| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|000001c0| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.305 [nioEventLoopGroup-660-1] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:15.305 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.305 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 => /127.0.0.1:36901] FLUSH
09:54:15.306 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.306 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 => /127.0.0.1:36901] FLUSH
09:54:15.306 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 :> /127.0.0.1:36901] INACTIVE
09:54:15.306 [nioEventLoopGroup-661-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-661-1
09:54:15.306 [nioEventLoopGroup-660-1] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1c007773, /127.0.0.1:47196 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.308 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"queryStringParameters\" : [ {\n \"name\" : \"alpha\",\n \"values\" : [ \"bravo\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.311 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 553, cap: 553, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 553
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 553B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 71 75 65 72 79 53 74 72 69 6e |. "queryStrin|
|00000050| 67 50 61 72 61 6d 65 74 65 72 73 22 20 3a 20 5b |gParameters" : [|
|00000060| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000070| 3a 20 22 61 6c 70 68 61 22 2c 0a 20 20 20 20 20 |: "alpha",. |
|00000080| 20 22 76 61 6c 75 65 73 22 20 3a 20 5b 20 22 62 | "values" : [ "b|
|00000090| 72 61 76 6f 22 20 5d 0a 20 20 20 20 7d 20 5d 0a |ravo" ]. } ].|
|000000a0| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|000000b0| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|000000c0| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|000000d0| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|000000e0| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|000000f0| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|00000100| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|00000110| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|00000120| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|00000130| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|00000140| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|00000150| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000160| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000170| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000180| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000190| 6d 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 |miss -->Testing |
|000001a0| 42 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 |B</body></html>"|
|000001b0| 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 |. },. "times" |
|000001c0| 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 |: {. "remaini|
|000001d0| 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 |ngTimes" : 0,. |
|000001e0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001f0| 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d |true. },. "tim|
|00000200| 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 |eToLive" : {. |
|00000210| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000220| 72 75 65 0a 20 20 7d 0a 7d |rue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.312 [nioEventLoopGroup-660-2] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"queryStringParameters" : [ {
"name" : "alpha",
"values" : [ "bravo" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing B</body></html>"
}
}
09:54:15.312 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.312 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 => /127.0.0.1:36901] FLUSH
09:54:15.312 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.312 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 => /127.0.0.1:36901] FLUSH
09:54:15.313 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 :> /127.0.0.1:36901] INACTIVE
09:54:15.313 [nioEventLoopGroup-660-2] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x99f0af4c, /127.0.0.1:47198 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.313 [nioEventLoopGroup-662-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-662-1
09:54:15.314 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\",\n \"cookies\" : [ {\n \"name\" : \"biscuit\",\n \"value\" : \"wafer\"\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.317 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 536, cap: 536, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 536
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 536B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 2c |"path" : "/foo",|
|00000040| 0a 20 20 20 20 22 63 6f 6f 6b 69 65 73 22 20 3a |. "cookies" :|
|00000050| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000060| 22 20 3a 20 22 62 69 73 63 75 69 74 22 2c 0a 20 |" : "biscuit",. |
|00000070| 20 20 20 20 20 22 76 61 6c 75 65 22 20 3a 20 22 | "value" : "|
|00000080| 77 61 66 65 72 22 0a 20 20 20 20 7d 20 5d 0a 20 |wafer". } ]. |
|00000090| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000a0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000b0| 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c |atusCode" : 200,|
|000000c0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000d0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|000000e0| 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 |" : "Content-Typ|
|000000f0| 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 |e",. "value|
|00000100| 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 |s" : [ "text/pla|
|00000110| 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 |in" ]. } ],. |
|00000120| 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 | "body" : "<ht|
|00000130| 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 |ml><body><!-- a |
|00000140| 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 |bunch of really |
|00000150| 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 |interesting cont|
|00000160| 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 |ent that you wou|
|00000170| 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d |ld be sorry to m|
|00000180| 69 73 73 20 2d 2d 3e 54 65 73 74 69 6e 67 20 43 |iss -->Testing C|
|00000190| 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d 6c 3e 22 0a |</body></html>".|
|000001a0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|000001b0| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|000001c0| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|000001d0| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|000001e0| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|000001f0| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000200| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000210| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.318 [nioEventLoopGroup-660-3] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo",
"cookies" : [ {
"name" : "biscuit",
"value" : "wafer"
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Testing C</body></html>"
}
}
09:54:15.318 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.318 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 => /127.0.0.1:36901] FLUSH
09:54:15.319 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.319 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 => /127.0.0.1:36901] FLUSH
09:54:15.319 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 :> /127.0.0.1:36901] INACTIVE
09:54:15.319 [nioEventLoopGroup-663-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-663-1
09:54:15.319 [nioEventLoopGroup-660-3] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xdcacec62, /127.0.0.1:47200 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.320 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/foo\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.323 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 463, cap: 463, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 463
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 463B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 66 6f 6f 22 0a |"path" : "/foo".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c |es" : [ "text/pl|
|000000c0| 61 69 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ain" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 | "body" : "<h|
|000000e0| 74 6d 6c 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 |tml><body><!-- a|
|000000f0| 20 62 75 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 | bunch of really|
|00000100| 20 69 6e 74 65 72 65 73 74 69 6e 67 20 63 6f 6e | interesting con|
|00000110| 74 65 6e 74 20 74 68 61 74 20 79 6f 75 20 77 6f |tent that you wo|
|00000120| 75 6c 64 20 62 65 20 73 6f 72 72 79 20 74 6f 20 |uld be sorry to |
|00000130| 6d 69 73 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 |miss -->Nothing |
|00000140| 73 70 65 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f |special</body></|
|00000150| 68 74 6d 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 |html>". },. "t|
|00000160| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000170| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|00000180| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|00000190| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000001a0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000001b0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000001c0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.324 [nioEventLoopGroup-660-4] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/foo"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:15.324 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.324 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 => /127.0.0.1:36901] FLUSH
09:54:15.324 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.324 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 => /127.0.0.1:36901] FLUSH
09:54:15.324 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 :> /127.0.0.1:36901] INACTIVE
09:54:15.324 [nioEventLoopGroup-660-4] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xa6aa7466, /127.0.0.1:47202 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.324 [nioEventLoopGroup-664-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-664-1
09:54:15.328 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/xml\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/xml\" ]\n } ],\n \"body\" : \"<?xml version=\\\"1.0\\\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.331 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 439, cap: 439, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 439
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 439B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 78 6d 6c 22 0a |"path" : "/xml".|
|00000040| 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 | },. "httpResp|
|00000050| 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 |onse" : {. "s|
|00000060| 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 30 |tatusCode" : 200|
|00000070| 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 |,. "headers" |
|00000080| 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d |: [ {. "nam|
|00000090| 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 |e" : "Content-Ty|
|000000a0| 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 |pe",. "valu|
|000000b0| 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 78 6d |es" : [ "text/xm|
|000000c0| 6c 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 |l" ]. } ],. |
|000000d0| 20 20 22 62 6f 64 79 22 20 3a 20 22 3c 3f 78 6d | "body" : "<?xm|
|000000e0| 6c 20 76 65 72 73 69 6f 6e 3d 5c 22 31 2e 30 5c |l version=\"1.0\|
|000000f0| 22 3f 3e 3c 72 6f 6f 74 3e 3c 63 68 69 6c 64 3e |"?><root><child>|
|00000100| 3c 65 6c 74 20 6e 61 6d 65 3d 27 66 6f 6f 27 20 |<elt name='foo' |
|00000110| 2f 3e 3c 74 65 78 74 3e 4e 6f 74 68 69 6e 67 20 |/><text>Nothing |
|00000120| 73 70 65 63 69 61 6c 3c 2f 74 65 78 74 3e 3c 2f |special</text></|
|00000130| 63 68 69 6c 64 3e 3c 2f 72 6f 6f 74 3e 22 0a 20 |child></root>". |
|00000140| 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 | },. "times" : |
|00000150| 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 |{. "remaining|
|00000160| 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 |Times" : 0,. |
|00000170| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000180| 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 |ue. },. "timeT|
|00000190| 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 |oLive" : {. "|
|000001a0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001b0| 65 0a 20 20 7d 0a 7d |e. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.332 [nioEventLoopGroup-660-5] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/xml"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/xml" ]
} ],
"body" : "<?xml version=\"1.0\"?><root><child><elt name='foo' /><text>Nothing special</text></child></root>"
}
}
09:54:15.332 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.332 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 => /127.0.0.1:36901] FLUSH
09:54:15.332 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.332 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 => /127.0.0.1:36901] FLUSH
09:54:15.332 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 :> /127.0.0.1:36901] INACTIVE
09:54:15.332 [nioEventLoopGroup-660-5] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xc0f83f04, /127.0.0.1:47204 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.333 [nioEventLoopGroup-665-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-665-1
09:54:15.335 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/json\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/json\" ]\n } ],\n \"body\" : \"\\n{\\n \\\"items\\\":[\\n {\\n \\\"name\\\":\\\"alpha\\\",\\n \\\"score\\\":123,\\n \\\"text\\\": \\\"Nothing special\\\"\\n }\\n ]\\n}\\n\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.338 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 502, cap: 502, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 502
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 502B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 6a 73 6f 6e 22 |"path" : "/json"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 6a |ues" : [ "text/j|
|000000c0| 73 6f 6e 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |son" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 5c 6e | "body" : "\n|
|000000e0| 7b 5c 6e 20 20 20 20 5c 22 69 74 65 6d 73 5c 22 |{\n \"items\"|
|000000f0| 3a 5b 5c 6e 20 20 20 20 20 20 20 20 7b 5c 6e 20 |:[\n {\n |
|00000100| 20 20 20 20 20 20 20 20 20 20 20 5c 22 6e 61 6d | \"nam|
|00000110| 65 5c 22 3a 5c 22 61 6c 70 68 61 5c 22 2c 5c 6e |e\":\"alpha\",\n|
|00000120| 20 20 20 20 20 20 20 20 20 20 20 20 5c 22 73 63 | \"sc|
|00000130| 6f 72 65 5c 22 3a 31 32 33 2c 5c 6e 20 20 20 20 |ore\":123,\n |
|00000140| 20 20 20 20 20 20 20 20 5c 22 74 65 78 74 5c 22 | \"text\"|
|00000150| 3a 20 5c 22 4e 6f 74 68 69 6e 67 20 73 70 65 63 |: \"Nothing spec|
|00000160| 69 61 6c 5c 22 5c 6e 20 20 20 20 20 20 20 20 7d |ial\"\n }|
|00000170| 5c 6e 20 20 20 20 5d 5c 6e 7d 5c 6e 22 0a 20 20 |\n ]\n}\n". |
|00000180| 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a 20 7b |},. "times" : {|
|00000190| 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e 67 54 |. "remainingT|
|000001a0| 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 20 22 |imes" : 0,. "|
|000001b0| 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 |unlimited" : tru|
|000001c0| 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 54 6f |e. },. "timeTo|
|000001d0| 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 22 75 |Live" : {. "u|
|000001e0| 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 75 65 |nlimited" : true|
|000001f0| 0a 20 20 7d 0a 7d |. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.339 [nioEventLoopGroup-660-6] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/json"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/json" ]
} ],
"body" : "\n{\n \"items\":[\n {\n \"name\":\"alpha\",\n \"score\":123,\n \"text\": \"Nothing special\"\n }\n ]\n}\n"
}
}
09:54:15.339 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.339 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 => /127.0.0.1:36901] FLUSH
09:54:15.339 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.339 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 => /127.0.0.1:36901] FLUSH
09:54:15.339 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 :> /127.0.0.1:36901] INACTIVE
09:54:15.339 [nioEventLoopGroup-660-6] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x6f9083b3, /127.0.0.1:47206 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.340 [nioEventLoopGroup-666-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-666-1
09:54:15.341 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/date\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/date\" ]\n } ],\n \"body\" : \"2016.08.25 14:43\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.343 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 360, cap: 360, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 360
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 360B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 64 61 74 65 22 |"path" : "/date"|
|00000040| 0a 20 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 |. },. "httpRes|
|00000050| 70 6f 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 |ponse" : {. "|
|00000060| 73 74 61 74 75 73 43 6f 64 65 22 20 3a 20 32 30 |statusCode" : 20|
|00000070| 30 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |0,. "headers"|
|00000080| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000090| 6d 65 22 20 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 |me" : "Content-T|
|000000a0| 79 70 65 22 2c 0a 20 20 20 20 20 20 22 76 61 6c |ype",. "val|
|000000b0| 75 65 73 22 20 3a 20 5b 20 22 74 65 78 74 2f 64 |ues" : [ "text/d|
|000000c0| 61 74 65 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a |ate" ]. } ],.|
|000000d0| 20 20 20 20 22 62 6f 64 79 22 20 3a 20 22 32 30 | "body" : "20|
|000000e0| 31 36 2e 30 38 2e 32 35 20 31 34 3a 34 33 22 0a |16.08.25 14:43".|
|000000f0| 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 20 3a | },. "times" :|
|00000100| 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e 69 6e | {. "remainin|
|00000110| 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 20 20 |gTimes" : 0,. |
|00000120| 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 | "unlimited" : t|
|00000130| 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |rue. },. "time|
|00000140| 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 20 20 |ToLive" : {. |
|00000150| 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 74 72 |"unlimited" : tr|
|00000160| 75 65 0a 20 20 7d 0a 7d |ue. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.344 [nioEventLoopGroup-660-7] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/date"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/date" ]
} ],
"body" : "2016.08.25 14:43"
}
}
09:54:15.344 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.344 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 => /127.0.0.1:36901] FLUSH
09:54:15.344 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.344 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 => /127.0.0.1:36901] FLUSH
09:54:15.345 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 :> /127.0.0.1:36901] INACTIVE
09:54:15.345 [nioEventLoopGroup-660-7] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x9dd21f5c, /127.0.0.1:47208 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.345 [nioEventLoopGroup-667-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-667-1
09:54:15.349 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status200\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 200\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.351 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 32 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s200". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 32 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 200. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.352 [nioEventLoopGroup-660-8] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status200"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200
}
}
09:54:15.352 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.352 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 => /127.0.0.1:36901] FLUSH
09:54:15.352 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.352 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 => /127.0.0.1:36901] FLUSH
09:54:15.352 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 :> /127.0.0.1:36901] INACTIVE
09:54:15.352 [nioEventLoopGroup-660-8] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x041fa8b2, /127.0.0.1:47210 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.352 [nioEventLoopGroup-668-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-668-1
09:54:15.356 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status300\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 300\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.358 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 33 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s300". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 33 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 300. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.358 [nioEventLoopGroup-660-9] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status300"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 300
}
}
09:54:15.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 => /127.0.0.1:36901] FLUSH
09:54:15.359 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 => /127.0.0.1:36901] FLUSH
09:54:15.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 :> /127.0.0.1:36901] INACTIVE
09:54:15.359 [nioEventLoopGroup-669-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-669-1
09:54:15.359 [nioEventLoopGroup-660-9] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x90266874, /127.0.0.1:47212 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.360 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status400\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 400\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.362 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 34 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s400". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 34 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 400. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.363 [nioEventLoopGroup-660-10] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status400"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 400
}
}
09:54:15.363 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.363 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 => /127.0.0.1:36901] FLUSH
09:54:15.363 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.363 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 => /127.0.0.1:36901] FLUSH
09:54:15.363 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 :> /127.0.0.1:36901] INACTIVE
09:54:15.363 [nioEventLoopGroup-670-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-670-1
09:54:15.363 [nioEventLoopGroup-660-10] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x5b4892ef, /127.0.0.1:47214 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.368 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/status500\"\n },\n \"httpResponse\" : {\n \"statusCode\" : 500\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.370 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 239, cap: 239, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 239
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 239B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 73 74 61 74 75 |"path" : "/statu|
|00000040| 73 35 30 30 22 0a 20 20 7d 2c 0a 20 20 22 68 74 |s500". },. "ht|
|00000050| 74 70 52 65 73 70 6f 6e 73 65 22 20 3a 20 7b 0a |tpResponse" : {.|
|00000060| 20 20 20 20 22 73 74 61 74 75 73 43 6f 64 65 22 | "statusCode"|
|00000070| 20 3a 20 35 30 30 0a 20 20 7d 2c 0a 20 20 22 74 | : 500. },. "t|
|00000080| 69 6d 65 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 |imes" : {. "r|
|00000090| 65 6d 61 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a |emainingTimes" :|
|000000a0| 20 30 2c 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 | 0,. "unlimit|
|000000b0| 65 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a |ed" : true. },.|
|000000c0| 20 20 22 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a | "timeToLive" :|
|000000d0| 20 7b 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 | {. "unlimite|
|000000e0| 64 22 20 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |d" : true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.371 [nioEventLoopGroup-660-11] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/status500"
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 500
}
}
09:54:15.371 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.371 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 => /127.0.0.1:36901] FLUSH
09:54:15.371 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.371 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 => /127.0.0.1:36901] FLUSH
09:54:15.371 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 :> /127.0.0.1:36901] INACTIVE
09:54:15.371 [nioEventLoopGroup-671-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-671-1
09:54:15.371 [nioEventLoopGroup-660-11] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x1d6a227d, /127.0.0.1:47216 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.372 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"!Authorization\",\n \"values\" : [ \"!Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 401,\n \"headers\" : [ {\n \"name\" : \"WWW-Authenticate\",\n \"values\" : [ \"Basic realm=\\\"Test Realm\\\"\" ]\n } ]\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.375 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 458, cap: 458, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 458
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 458B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 21 41 75 74 68 6f 72 69 7a |me" : "!Authoriz|
|00000070| 61 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 |ation",. "v|
|00000080| 61 6c 75 65 73 22 20 3a 20 5b 20 22 21 42 61 73 |alues" : [ "!Bas|
|00000090| 69 63 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 |ic YWRtaW46JDNjc|
|000000a0| 6a 4e 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 |jN0" ]. } ]. |
|000000b0| 20 7d 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f | },. "httpRespo|
|000000c0| 6e 73 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 |nse" : {. "st|
|000000d0| 61 74 75 73 43 6f 64 65 22 20 3a 20 34 30 31 2c |atusCode" : 401,|
|000000e0| 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 20 3a |. "headers" :|
|000000f0| 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 | [ {. "name|
|00000100| 22 20 3a 20 22 57 57 57 2d 41 75 74 68 65 6e 74 |" : "WWW-Authent|
|00000110| 69 63 61 74 65 22 2c 0a 20 20 20 20 20 20 22 76 |icate",. "v|
|00000120| 61 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 |alues" : [ "Basi|
|00000130| 63 20 72 65 61 6c 6d 3d 5c 22 54 65 73 74 20 52 |c realm=\"Test R|
|00000140| 65 61 6c 6d 5c 22 22 20 5d 0a 20 20 20 20 7d 20 |ealm\"" ]. } |
|00000150| 5d 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 73 22 |]. },. "times"|
|00000160| 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 69 6e | : {. "remain|
|00000170| 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c 0a 20 |ingTimes" : 0,. |
|00000180| 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a | "unlimited" :|
|00000190| 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 74 69 | true. },. "ti|
|000001a0| 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a 20 20 |meToLive" : {. |
|000001b0| 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 3a 20 | "unlimited" : |
|000001c0| 74 72 75 65 0a 20 20 7d 0a 7d |true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.375 [nioEventLoopGroup-660-12] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "!Authorization",
"values" : [ "!Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 401,
"headers" : [ {
"name" : "WWW-Authenticate",
"values" : [ "Basic realm=\"Test Realm\"" ]
} ]
}
}
09:54:15.376 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.376 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 => /127.0.0.1:36901] FLUSH
09:54:15.376 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.376 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 => /127.0.0.1:36901] FLUSH
09:54:15.376 [nioEventLoopGroup-672-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 3 thread-local buffer(s) from thread: nioEventLoopGroup-672-1
09:54:15.376 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 :> /127.0.0.1:36901] INACTIVE
09:54:15.376 [nioEventLoopGroup-660-12] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x4cdb1ecd, /127.0.0.1:47218 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.380 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/expectation",
"body" : {
"charset" : "UTF-8",
"type" : "STRING",
"string" : "{\n \"httpRequest\" : {\n \"method\" : \"GET\",\n \"path\" : \"/basic\",\n \"headers\" : [ {\n \"name\" : \"Authorization\",\n \"values\" : [ \"Basic YWRtaW46JDNjcjN0\" ]\n } ]\n },\n \"httpResponse\" : {\n \"statusCode\" : 200,\n \"headers\" : [ {\n \"name\" : \"Content-Type\",\n \"values\" : [ \"text/plain\" ]\n } ],\n \"body\" : \"<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>\"\n },\n \"times\" : {\n \"remainingTimes\" : 0,\n \"unlimited\" : true\n },\n \"timeToLive\" : {\n \"unlimited\" : true\n }\n}"
}
}
09:54:15.382 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 => /127.0.0.1:36901] RECEIVED: HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 572, cap: 572, components=1))
PUT /expectation HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 572
Connection: keep-alive
Content-Type: text/plain; charset=utf-8, 572B
+-------------------------------------------------+
| 0 1 2 3 4 5 6 7 8 9 a b c d e f |
+--------+-------------------------------------------------+----------------+
|00000000| 7b 0a 20 20 22 68 74 74 70 52 65 71 75 65 73 74 |{. "httpRequest|
|00000010| 22 20 3a 20 7b 0a 20 20 20 20 22 6d 65 74 68 6f |" : {. "metho|
|00000020| 64 22 20 3a 20 22 47 45 54 22 2c 0a 20 20 20 20 |d" : "GET",. |
|00000030| 22 70 61 74 68 22 20 3a 20 22 2f 62 61 73 69 63 |"path" : "/basic|
|00000040| 22 2c 0a 20 20 20 20 22 68 65 61 64 65 72 73 22 |",. "headers"|
|00000050| 20 3a 20 5b 20 7b 0a 20 20 20 20 20 20 22 6e 61 | : [ {. "na|
|00000060| 6d 65 22 20 3a 20 22 41 75 74 68 6f 72 69 7a 61 |me" : "Authoriza|
|00000070| 74 69 6f 6e 22 2c 0a 20 20 20 20 20 20 22 76 61 |tion",. "va|
|00000080| 6c 75 65 73 22 20 3a 20 5b 20 22 42 61 73 69 63 |lues" : [ "Basic|
|00000090| 20 59 57 52 74 61 57 34 36 4a 44 4e 6a 63 6a 4e | YWRtaW46JDNjcjN|
|000000a0| 30 22 20 5d 0a 20 20 20 20 7d 20 5d 0a 20 20 7d |0" ]. } ]. }|
|000000b0| 2c 0a 20 20 22 68 74 74 70 52 65 73 70 6f 6e 73 |,. "httpRespons|
|000000c0| 65 22 20 3a 20 7b 0a 20 20 20 20 22 73 74 61 74 |e" : {. "stat|
|000000d0| 75 73 43 6f 64 65 22 20 3a 20 32 30 30 2c 0a 20 |usCode" : 200,. |
|000000e0| 20 20 20 22 68 65 61 64 65 72 73 22 20 3a 20 5b | "headers" : [|
|000000f0| 20 7b 0a 20 20 20 20 20 20 22 6e 61 6d 65 22 20 | {. "name" |
|00000100| 3a 20 22 43 6f 6e 74 65 6e 74 2d 54 79 70 65 22 |: "Content-Type"|
|00000110| 2c 0a 20 20 20 20 20 20 22 76 61 6c 75 65 73 22 |,. "values"|
|00000120| 20 3a 20 5b 20 22 74 65 78 74 2f 70 6c 61 69 6e | : [ "text/plain|
|00000130| 22 20 5d 0a 20 20 20 20 7d 20 5d 2c 0a 20 20 20 |" ]. } ],. |
|00000140| 20 22 62 6f 64 79 22 20 3a 20 22 3c 68 74 6d 6c | "body" : "<html|
|00000150| 3e 3c 62 6f 64 79 3e 3c 21 2d 2d 20 61 20 62 75 |><body><!-- a bu|
|00000160| 6e 63 68 20 6f 66 20 72 65 61 6c 6c 79 20 69 6e |nch of really in|
|00000170| 74 65 72 65 73 74 69 6e 67 20 63 6f 6e 74 65 6e |teresting conten|
|00000180| 74 20 74 68 61 74 20 79 6f 75 20 77 6f 75 6c 64 |t that you would|
|00000190| 20 62 65 20 73 6f 72 72 79 20 74 6f 20 6d 69 73 | be sorry to mis|
|000001a0| 73 20 2d 2d 3e 4e 6f 74 68 69 6e 67 20 73 70 65 |s -->Nothing spe|
|000001b0| 63 69 61 6c 3c 2f 62 6f 64 79 3e 3c 2f 68 74 6d |cial</body></htm|
|000001c0| 6c 3e 22 0a 20 20 7d 2c 0a 20 20 22 74 69 6d 65 |l>". },. "time|
|000001d0| 73 22 20 3a 20 7b 0a 20 20 20 20 22 72 65 6d 61 |s" : {. "rema|
|000001e0| 69 6e 69 6e 67 54 69 6d 65 73 22 20 3a 20 30 2c |iningTimes" : 0,|
|000001f0| 0a 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 |. "unlimited"|
|00000200| 20 3a 20 74 72 75 65 0a 20 20 7d 2c 0a 20 20 22 | : true. },. "|
|00000210| 74 69 6d 65 54 6f 4c 69 76 65 22 20 3a 20 7b 0a |timeToLive" : {.|
|00000220| 20 20 20 20 22 75 6e 6c 69 6d 69 74 65 64 22 20 | "unlimited" |
|00000230| 3a 20 74 72 75 65 0a 20 20 7d 0a 7d |: true. }.} |
+--------+-------------------------------------------------+----------------+
09:54:15.383 [nioEventLoopGroup-660-13] INFO o.m.mockserver.MockServerHandler - creating expectation:
{
"httpRequest" : {
"method" : "GET",
"path" : "/basic",
"headers" : [ {
"name" : "Authorization",
"values" : [ "Basic YWRtaW46JDNjcjN0" ]
} ]
},
"times" : {
"remainingTimes" : 0,
"unlimited" : true
},
"timeToLive" : {
"unlimited" : true
},
"httpResponse" : {
"statusCode" : 200,
"headers" : [ {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ],
"body" : "<html><body><!-- a bunch of really interesting content that you would be sorry to miss -->Nothing special</body></html>"
}
}
09:54:15.383 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 201 Created
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:15.384 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 => /127.0.0.1:36901] FLUSH
09:54:15.384 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 201,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:15.384 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 => /127.0.0.1:36901] FLUSH
09:54:15.384 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 :> /127.0.0.1:36901] INACTIVE
09:54:15.384 [nioEventLoopGroup-660-13] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xcaf4033a, /127.0.0.1:47220 :> /127.0.0.1:36901] UNREGISTERED
09:54:15.384 [nioEventLoopGroup-673-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-673-1
09:54:15.459 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 :> /127.0.0.1:33697] FLUSH
09:54:15.459 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 :> /127.0.0.1:33697] INACTIVE
09:54:15.459 [nioEventLoopGroup-644-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0xfc52d3ac, /127.0.0.1:38428 :> /127.0.0.1:33697] UNREGISTERED
09:54:15.459 [nioEventLoopGroup-644-14] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-644-14
09:54:16.239 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Sending request: {
"method" : "PUT",
"path" : "/stop"
}
09:54:16.241 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f56e685, /127.0.0.1:47254 => /127.0.0.1:36901] RECEIVED, HttpObjectAggregator$AggregatedFullHttpRequest(decodeResult: success, version: HTTP/1.1, content: CompositeByteBuf(ridx: 0, widx: 0, cap: 0, components=0))
PUT /stop HTTP/1.1
Host: localhost:36901
Accept-Encoding: gzip,deflate
Content-Length: 0
Connection: keep-alive, 0B
09:54:16.242 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f56e685, /127.0.0.1:47254 => /127.0.0.1:36901] WRITE, DefaultFullHttpResponse(decodeResult: success, version: HTTP/1.1, content: EmptyByteBufBE)
HTTP/1.1 202 Accepted
Content-Length: 0
Connection: keep-alive
Content-Type: text/plain, 0B
09:54:16.242 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f56e685, /127.0.0.1:47254 => /127.0.0.1:36901] FLUSH
09:54:16.242 [nioEventLoopGroup-660-14] DEBUG i.n.handler.logging.LoggingHandler - [id: 0x8f56e685, /127.0.0.1:47254 => /127.0.0.1:36901] CLOSE()
09:54:16.242 [Test worker] DEBUG o.m.client.netty.NettyHttpClient - Received response: {
"statusCode" : 202,
"headers" : [ {
"name" : "Connection",
"values" : [ "keep-alive" ]
}, {
"name" : "Content-Length",
"values" : [ "0" ]
}, {
"name" : "Content-Type",
"values" : [ "text/plain" ]
} ]
}
09:54:16.242 [nioEventLoopGroup-674-1] DEBUG io.netty.buffer.PoolThreadCache - Freed 2 thread-local buffer(s) from thread: nioEventLoopGroup-674-1